Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 10, 2019 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/2e02781e6d94f000bc067dceeeab6d7a to your computer and use it in GitHub Desktop.
Save codecademydev/2e02781e6d94f000bc067dceeeab6d7a to your computer and use it in GitHub Desktop.
Codecademy export
def repeat_stuff(stuff, num_repeats = 10):
return stuff*num_repeats
repeat_stuff('Row ',3)
lyrics = repeat_stuff('Row ',3) + 'Your boat '
@FeelGoody
Copy link

def repeat_stuff (stuff, num_repeats=10):
return (stuff*num_repeats + "Your Boat. ")

lyrics=repeat_stuff("Row ", 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment