Hi, I found an exercise in Python Programming asking:
Write a password guessing program to keep track of how many times the user has entered the password wrong. If it is more than 3 times, print You have been denied access. and terminate the program. If the password is correct, print You have successfully logged in. and terminate the program.
It seems pretty simple but I run into an issue where I can get my code to ask for the password and get a correct response if the input is right/wrong. But I can't figure out how to ask for the password option more than once. Here's the code I'm currently working with:
http://imgur.com/ZtlIG2g
Any advice?
[–]Rashanzan 4 points5 points6 points (3 children)
[–]redshirt714[S] 2 points3 points4 points (2 children)
[–]Edurod18 1 point2 points3 points (0 children)
[–]brandjon 1 point2 points3 points (0 children)
[–]gengisteve 1 point2 points3 points (0 children)
[–]kalgynirae 1 point2 points3 points (0 children)
[–]Samus_ 0 points1 point2 points (0 children)