Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 308 Bytes

inputs.md

File metadata and controls

13 lines (8 loc) · 308 Bytes

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