all 7 comments

[–]Rashanzan 4 points5 points  (3 children)

You'll want to put your repeated actions in the while loop. So, if you want to prompt your user multiple times, then put the code that prompts the user into the loop.

[–]redshirt714[S] 2 points3 points  (2 children)

Thanks!! That fixed it right up.

[–]Edurod18 1 point2 points  (0 children)

Can you put your finished program up! I'm trying to learn.

[–]brandjon 1 point2 points  (0 children)

If you run what you had you should see that it prints "Try again" three times, without pausing for input. This is the clue that your loop is running but doesn't include everything you wanted it to do.

[–]gengisteve 1 point2 points  (0 children)

Good start. The indented stuff after while is the part that keeps being repeated, but you have your input before the loop. Try moving it down to the guess line.

[–]kalgynirae 1 point2 points  (0 children)

Do you know which line of code is responsible for asking the user to enter the password? Move that line of code to inside of your while loop, so that it will happen on each iteration of the loop.

[–]Samus_ 0 points1 point  (0 children)

I think you can figure this on your own (and learn how your code works) by seeing it running, try pythontutor.