+ 1
How to fix indentation errors?
password = input() repeat = input() def validate(text1, text2): if text1 == text2 : print("Correct") else: print("Wrong") def validate(password , repeat)
3 Respuestas
+ 3
Remove all the spaces before the first if statement then add one tab
Also when you call the function don't use def
password = input()
repeat = input()
def validate(text1, text2):
if text1 == text2 :
print("Correct")
else:
print("Wrong")
validate(password , repeat)
+ 3
You might also want to read this general explanation (don't run it) of indentation:
https://code.sololearn.com/cT5BRIbkia21/?ref=app
+ 1
Aman kumar
Go through this tutorial, it might help
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2285/?ref=app