- The python is installed by default on every Ubuntu so why program in bash?
- Save this code as `grading.py`
- choice = int(raw_input('Please enter your choice: '))
- if 0 < choice < 59:
- print 'F : You done goofed.'
- elif 60 < choice < 69:
- print 'D : She wants it...'
- elif 70 < choice < 79:
- print 'C : Im bored'
- Run `grading.py` with this command:
- python grading.py
a guest May 14th, 2015 193 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data