def p(s): print((s+","+" doo"*6+"\n")*3+s+"!") p("Baby shark") p("Mommy shark") p("Daddy shark") p("Grandma shark") p("Grandpa shark") p("Let's go hunt") p("Run away") p("Safe at last") p("It's the end")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).