defining functions we have defined new function called happy here is an example of what it doeshappy(happy birthday to youinvoking the happy command causes python to print line of the song now we can redo the verse for fred using happy let' call our new version singfred def singfred()happy(happy(print("happy birthdaydear fred "happy(this version required much less typingthanks to the happy command let' try printing the lyrics for fred just to make sure it works singfred(happy birthday to youhappy birthday to youhappy birthdaydear fred happy birthday to youso farso good now suppose that it' also lucy' birthdayand we want to sing verse for fred followed by verse for lucy we've already got the verse for fredwe can prepare one for lucy as well def singlucy()happy(happy(print("happy birthdaydear lucy "happy(now we can write main program that sings to both fred and lucy def main()singfred(print(singlucy(the bare print between the two function calls puts space between the verses in our output and here' the final product in actionmain(happy birthday to youhappy birthday to you