Good programmers, plz help...

Why, when I take the code from this repl and paste it in IDLE, do I get a different result (a more correct result) on IDLE than I do on

On repl, I was coding and printing things out line by line to see where the runtime error was, but it is almost like the program stops on its own in the middle of the while loop.

When I copy all of it to IDLE and run it, it prints things out forever, which also isn't right, but at least that makes sense. What doesn't make sense is how almost seems to literally stop the program from within the program. It's like an AI that gets fed up with doing all the calculations, so the program itself decides to stop running. I swear this is what seems like is happening. Please take a look and tell me if I am right.

You are viewing a single comment. View All