Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #happy birthday function
  2. from time import sleep
  3. def happy_birthday(name):
  4. name = input("What name shall we use ? ")
  5. def chorus():
  6. print("Happy Birthday to you")
  7. sleep(2)
  8. for lines in range(2):
  9. chorus()
  10. print("Happy Birthday dear {} ".format(name))
  11. sleep(1.5)
  12. chorus()
  13. return name
  14. happy_birthday("name")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement