for i in inputm[1:]:
if i[0].find('::') == -1:
print('\n',"This is not a valid record.")
else:
print('\n',i[0].split(':')[0]
,str(datetime.strptime(i[0].split(':')[1],'%Y%m%d'))[:10]
,i[1]
,round(sum( float(v) if v else 0.0 for v in i[2:6])/4,2)
,i[6] if Counter(i[6][0:23]) == Counter("http://www.google.com") else ' '
,'Valid URL' if Counter(i[6][0:23]) == Counter("http://www.google.com") else 'Invalid URL'
)
Error :-
IndentationError: unindent does not match any outer indentation level
I keep getting a syntax error on the else statement and I am unsure why it keeps producing this error.What do I do?
Aucun commentaire:
Enregistrer un commentaire