""" b3.py third version of happy birthday song. Print only in main. Reduce repitition. Other functions have clean args and return values. """ def to_you_line(first_letter, punctuation): """ Return one line of the birthday song """ return "{}appy birthday to you{}\n".format( first_letter, punctuation) def dear_line(name): """ Return line with 'dear' from HBS (Happy Birthday Song)""" return "happy birthday dear {},\n".format(name) def song(name): return to_you_line('H', ',') + \ to_you_line('h', ',') + \ dear_line(name) + \ to_you_line('h', '!') def main(): print(song('Sally')) main()