Skip to content

Instantly share code, notes, and snippets.

@miotke
Last active January 25, 2024 23:24
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 miotke/ad000f1184d8d4e2b2017d490b4e1f7b to your computer and use it in GitHub Desktop.
Save miotke/ad000f1184d8d4e2b2017d490b4e1f7b to your computer and use it in GitHub Desktop.
# Passing your question in to input() as a string
#
# Both print() and input() are functions that can take some some data,
# usually a string.
#
# Below in 'user_input' it asks how many apples you have and then you can
# type in anything you want (preferrably a number) then, it prints whatever
# value you gave user_input.
user_input = input("How many apples do you have? ")
print(user_input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment