Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #happy birthday function
- from time import sleep
- def happy_birthday(name):
- name = input("What name shall we use ? ")
- def chorus():
- print("Happy Birthday to you")
- sleep(2)
- for lines in range(2):
- chorus()
- print("Happy Birthday dear {} ".format(name))
- sleep(1.5)
- chorus()
- return name
- happy_birthday("name")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement