SHARE
TWEET

birthday

a guest Sep 20th, 2019 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. def birthday(name, age):
  3.     howold = 0
  4.     print("Happy Birthday to you!")
  5.     print("Happy Birthday to you!")
  6.     print("Happy Birthday, dear " + name)
  7.     print("Happy Birthday to you!")
  8.    
  9.     while(howold < age):
  10.         ho = str(howold)
  11.         print("Are you " + ho + ",")
  12.         howold += 1
  13.        
  14.     print(str(age) +"! YAY!")
  15.  
  16. name = input("Who's Birthday is it?: ")
  17. age = int(input("How old are you? "))
  18.  
  19. birthday(name, age)
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
 
Top