-
-
Save fernandoflorez/6b74f1c2080b6fa8cf3e275359531e20 to your computer and use it in GitHub Desktop.
Shortest version of baby shark song (python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s=lambda c=0,l=0:['Mommy','Daddy','Grandma','Grandpa'][c]+' shark'+(', '+' '.join(['doo']*6) if l<3 else '!')+'\n'+('' if c>3 else s(c,l+1) if l<3 else s(c+1,0) if c<3 else '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment