Advertisement
Guest User

happybirthday0

a guest
Jul 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # From "Teaching with Python" by John Zelle
  2. 2   def happy():
  3. 3       print("Happy Birthday to you!")
  4. 4  
  5. 5   def sing(P):
  6. 6       happy()
  7. 7       happy()
  8. 8       print("Happy Birthday dear " + P + "!")
  9. 9       happy()
  10. 10 
  11. 11  # main
  12. 12  sing("Fred")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement