daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest May 1st, 2011 187 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2.  
  3. while True:
  4.         name=raw_input('Enter a name:')
  5.         if name == 'DONE':
  6.                 break
  7.         hours=raw_input('Hours worked:')
  8.         if hours == 'DONE':
  9.                 break
  10.         else:
  11.                 while int(hours) > 60 or int(hours) < 1:
  12.                         hours=raw_input('Hours worked:')
  13.                         if hours == 'DONE':
  14.                                 sys.exit(0)
  15.         hwage=raw_input('Enter hourly wage:')
  16.         if hwage == 'DONE':
  17.                 break
  18.         else:
  19.                 while int(hwage) > 20 or int(hwage) < 5:
  20.                         hwage=raw_input('Enter hourly wage:')
  21.                         if hwage == 'DONE':
  22.                                 sys.exit(0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top