teromakotero icon

Happy Birthday

teromakotero | PRO | 05/05/19 12:23:00 PM UTC | 0 ⭐ | 481 👁️ | Never ⏰ | []
Python |

540 B

|

None

|

0 👍

/

0 👎

'''
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))

Comments