Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 12, 2019 07:02
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/6385d7935358dfb65a52f5e668741651 to your computer and use it in GitHub Desktop.
Save codecademydev/6385d7935358dfb65a52f5e668741651 to your computer and use it in GitHub Desktop.
Codecademy export
# Write your add_exclamation function here:
def add_exclamation(word):
word += "!"*(20-len(word))
return word
# Uncomment these function calls to test your function:
print(add_exclamation("Codecademy"))
# should print Codecademy!!!!!!!!!!
#print(add_exclamation("Codecademy is the best place to learn"))
# should print Codecademy is the best place to learn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment