Reference: https://docs.python.org/3/library/functions.html#inputarrow-up-right
The input() function allows us to capture user input from the command-line (and usually store the result in a variable):
input()
x = input("Please input a number:") print(x)
NOTE: the resulting value will be a string
Last updated 6 years ago