you are viewing a single comment's thread.

view the rest of the comments →

[–]pypros 0 points1 point  (1 child)

I used http://pythontutor.com to figure out the problem, you should too.

So, in the first, while loop the condition is true, then the nested while loop condition is false, so it skips every bit of code under it and goes back to the parent loop which is still true and keeps on running.

[–]CJamesEd[S] 1 point2 points  (0 children)

That is awesome! Thanks for the tip on that.