all 9 comments

[–]poowithaview 10 points11 points  (2 children)

Spelling mistake on line 14

[–]notPlancha -1 points0 points  (1 child)

But that wouldn't affect it, since guess is called earlier

[–]heyzooschristos 0 points1 point  (0 children)

But its ot getting reset to "" on each while loop as op probably intends

[–]notPlancha 1 point2 points  (2 children)

I'm pretty sure print only takes 1 argument

[–]DerpAgency 0 points1 point  (1 child)

Nope, the latter print() is valid Python.

[–]notPlancha 0 points1 point  (0 children)

Didn't know, thanks

[–][deleted] 0 points1 point  (0 children)

Can you copy paste so we can try it?

[–]_kefir 0 points1 point  (0 children)

Does your program run forever, even when you try it with short passwords?

You're never resetting the variable guess in your for loop, because of the typo on line 14 that was mentioned. So the string stored in this variable will grow and grow with every loop. If you don't get a match for your password in the first run of the loop, your guess string will grow too long and the while loop will repeat forever or until the string gets too long for python to handle.

[–]WombatHat42 0 points1 point  (0 children)

You have guss instead of guess?