SHARE
TWEET

Untitled

a guest Dec 6th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top