python_wiki:main_program_loop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
python_wiki:main_program_loop [2015/03/09 23:25]
billdozor
python_wiki:main_program_loop [2019/05/25 23:50] (current)
Line 9: Line 9:
  
 ---- ----
-===== The Code =====+ 
 +====== The Code ======
  
 <code python> <code python>
Line 34: Line 35:
     #trap keyboard interrupts (control+c), quit clean only     #trap keyboard interrupts (control+c), quit clean only
     except (KeyboardInterrupt):     except (KeyboardInterrupt):
-      input("\nPlease quit by entering \'q\' or \'quit\'! [Enter] to continue:")+      input("\nPlease quit by entering 'q' or 'quit'! [Enter] to continue:")
       continue       continue
   # END OF WHILE LOOP    # END OF WHILE LOOP
Line 40: Line 41:
 ## End of main() ## ## End of main() ##
 </code> </code>
 +
 +----
 +
  • python_wiki/main_program_loop.1425957953.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)