Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Create a function with one parameter, name, which will be the name of a person.
- The function should then “sing” Happy Birthday to that person, inserting their
- name at the correct point. Give your function a sensible name.
- '''
- name = input("Give me your name: ")
- def happy(name):
- string = "Happy Birthday to You\nHappy Birthday to You\nHappy Birthday Dear {}\nHappy Birthday to You.\n\nPaljon onnea vaan!\nPaljon onnea vaan!\nPaljon onnea {}!\nPaljon onnea vaan!".format(name,name)
- return string
- print("")
- print(happy(name))
Advertisement
Add Comment
Please, Sign In to add comment