Jul-19-2018, 06:21 AM
Buran is right. You need what is often called an until loop. While it is not explicitly supported in Python, you can do one this way:
while True: # do stuff if condition: breakThat is, check the condition at the end of the loop, rather than use a standard while that will check it at the beginning of the loop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures