I need help with endwhile and endif the code works but its in a loop and doesn’t drop out.
''' password1 = input(“please enter a new password, between 8 and 15 characters: “)
match = false
while passwords1:
while match
password1 = input('Password must be between 8 and 15 characters - please re-enter: ')
endwhile
password2 = input ('Please verify password: ')
if password1 == password2:
print('Your password has been accpted')
else:
print('You have entred an incorrectly password')
endif
endwhile
Aucun commentaire:
Enregistrer un commentaire