Skip to content

Instantly share code, notes, and snippets.

@fernandoflorez
Created June 26, 2020 15:40
Show Gist options
  • Save fernandoflorez/6b74f1c2080b6fa8cf3e275359531e20 to your computer and use it in GitHub Desktop.
Save fernandoflorez/6b74f1c2080b6fa8cf3e275359531e20 to your computer and use it in GitHub Desktop.
Shortest version of baby shark song (python)
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