Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tentativa = 0
- while tentativa < 3:
- username = raw_input(" Insere o nome de utilizador: ")
- password = raw_input(" Insere a password: ")
- if username == "joao" and password == "123":
- print "login realizado com sucesso!"
- break
- else:
- tentativa += 1
- print "login incorreto!"
- if tentativa == 3:
- print "esgotaste as tentativas!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement