i have aproblem with indent this code
if response.status_code == 200:
#print(response.text)
string=response.text
#print(response.text)
results = re.findall(r'<th scope="row">(.*?)</th>\n.*?<td>(.*?)</td>\n.*?<td>(.*?)</td>\n.*?<td>(.*?)</td>', string, re.DOTALL)
for t in results:
print(t)
else:
print("Errore nella richiesta, codice di stato:", response.status_code)
i think is correct but return me error File "/home/stefano/Desktop/test.py", line 68 print(t) TabError: inconsistent use of tabs and spaces in indentation
i try to reduce tab and use space but return error again
if response.status_code == 200:
#print(response.text)
string=response.text
#print(response.text)
results = re.findall(r'<th scope="row">(.*?)</th>\n.*?<td>(.*?)</td>\n.*?<td>(.*?)</td>\n.*?<td>(.*?)</td>', string, re.DOTALL)
for t in results:
print(t)
else:
print("Errore nella richiesta, codice di stato:", response.status_code)
i hope one day everyone create a fork of python without indentation Hell