DEV Community

Discussion on: How to fix an Endless Loop in Python?

Collapse
 
mkartic profile image
mkartic

Hi,
You have assigned 'rolling_again' to 'yes' at the start of your program. Once you enter the 'while' loop, rolling_again's value is not changed in any way.

You have to put the entire block of code starting from the if condition to end of the program inside the while loop. That way, each iteration, you can get user input and proceed based on that.

Hope this helps.

Collapse
 
crhodes2 profile image
crhodes

Yes! It works! Thank you!