brendanlong

Untitled

Jun 27th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. while True:
  2.     try:
  3.         print "test"
  4.     except KeyboardInterrupt:
  5.         leaveopt = raw_input( 'Would you like to exit or skip the current match? [e/s]:' )
  6.         if leaveopt == 'e':
  7.             print '\nExiting...'
  8.         else:
  9.             print '\nSkipping match...'
Advertisement
Add Comment
Please, Sign In to add comment