Skip to content

Instantly share code, notes, and snippets.

@adammcarth
Last active August 29, 2015 14:16
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 adammcarth/f5bb5e900369879a9d24 to your computer and use it in GitHub Desktop.
Save adammcarth/f5bb5e900369879a9d24 to your computer and use it in GitHub Desktop.
# Save the answer into a variable called 'num'.
num = input("How many underscores do you want, yo?: ")
# Multiply "_" by the amount specified before...
underscores = "_" * int(num)
# Print out the smiley face!
print("^" + underscores + "^")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment