Advertisement
sweetvalentina

Python | p2pu task 1

Sep 9th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #These are the exercises for Python programming on p2pu
  2.  
  3. #exercize 2.2
  4.  
  5. name = raw_input("Enter your name: ")
  6. print "Hello" , name
  7.  
  8. #exercise 2.3
  9.  
  10. hh = raw_input("Enter Hours: ")
  11. hours = float(hh)
  12. hh = raw_input("Enter Rate: ")
  13. rate = float(hh)
  14. # print rate, hours
  15. pay = rate * hours
  16. print pay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement