Is there a method that tells my program to quit?
Posted
by Waterfox
on Stack Overflow
See other posts from Stack Overflow
or by Waterfox
Published on 2010-05-12T23:22:40Z
Indexed on
2010/05/12
23:34 UTC
Read the original article
Hit count: 250
For the "q" (quit) option in my program menu, I have the following code:
elif choice == "q":
print()
That worked all right until I put it in an infinite loop, which kept printing blank lines. Is there a method that can quit the program? Else, can you think of another solution?
© Stack Overflow or respective owner