0

What's the problem of my code?

password = input() repeat = input() def validate(text1, text2): if text1==text2: print("Correct") else: print("Wrong") validate(password, repeat)

30th Apr 2022, 11:26 AM
Hani
Hani - avatar
2 Answers
+ 6
Indent the validate() function body, code indentation is crucial in Python def validate( text1, text2 ): if text1 == text2: # correct else: # wrong
30th Apr 2022, 9:22 PM
Ipang
+ 1
بهت پیشنهاد میکنم پایتون مقدماتی رو شروع کنی
30th Apr 2022, 11:44 PM
mobin___2001
mobin___2001 - avatar