0
How to create endless loop until user until breaks the loop?
3 Respostas
+ 1
Can you give one example?
+ 1
while True:
If input("break? ") == "yes":
break
+ 1
Depends on what you need. If you don't wanna ask the user every iteration of the loop if he wants to exit, you can simply rely on CTRL-C or the close button.