0

I trying do matching password using def function but I can't fix that? password = input() repeat = input() def

Matching Passwords

1st Jan 2021, 6:30 PM
Patryk Dudek
Patryk Dudek - avatar
4 Antworten
+ 1
The total code is wrong all of you . Lets see;; Password = input() Repeat = input() def validate(text1, text2): If Password == Repeat: Print(text1) Else : Print(text2) validate("Correct","Wrong")
19th Jul 2021, 1:23 AM
Gangipogu.Srinivasarao
Gangipogu.Srinivasarao - avatar
0
Whole code looks like that but still not work password = input() repeat = input() def validate(password,repeat): return password == repeat if password == repeat: print("correct") else: print("wrong")
1st Jan 2021, 6:54 PM
Patryk Dudek
Patryk Dudek - avatar
0
after you have created the validate function, you should call it like this: if validate(password, repeat): print("correct") else: print("wrong")
1st Jan 2021, 9:15 PM
John Robotane
John Robotane - avatar
0
It is possible that the error is in the code because you did not type the first capital letters in the wrong and correct
11th Dec 2021, 5:03 PM
Sarah Nasser