Advertisement
Guest User

AskUbuntuQ1

a guest
May 14th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. The python is installed by default on every Ubuntu so why program in bash?
  2.  
  3. Save this code as `grading.py`
  4.  
  5. choice = int(raw_input('Please enter your choice: '))
  6.  
  7. if 0 < choice < 59:
  8. print 'F : You done goofed.'
  9. elif 60 < choice < 69:
  10. print 'D : She wants it...'
  11. elif 70 < choice < 79:
  12. print 'C : Im bored'
  13. else:
  14. exit()
  15.  
  16. Run `grading.py` with this command:
  17.  
  18. python grading.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement