User Inputs

Reference: https://docs.python.org/3/library/functions.html#input

The input() function allows us to capture user input from the command-line (and usually store the result in a variable):

x = input("Please input a number:")

print(x)

NOTE: the resulting value will be a string

Last updated