Skip to content

Instantly share code, notes, and snippets.

@lbattaglioli2000
Last active June 21, 2016 23:32
Show Gist options
  • Save lbattaglioli2000/c601457c88d98157aee0b608d019e015 to your computer and use it in GitHub Desktop.
Save lbattaglioli2000/c601457c88d98157aee0b608d019e015 to your computer and use it in GitHub Desktop.
# You can put the prompt in as a string directly
userName = input("What is your name? ")
# ...OR...
# The prompt can also be stored as a string in a variable like so:
prompt = "How old are you?"
userAge = input(prompt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment