Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #
- # Author: Landon Mayo
- '''
- Exercise 2.3 Write a program to prompt the user for
- hours and rate per hour to compute gross pay.
- '''
- hours = raw_input('Enter Number of Hours: ')
- rate = raw_input('Now Enter Your Hourly Rate: ')
- pay = float(hours) * float(rate)
- print 'Pay:',pay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement