input() FunctionReads a line from the user input (usually the keyboard). Returns the input as a string.
variable = input("Optional prompt message: ")
"Optional prompt message: ": A string displayed to the user before they enter input. This is optional.
The text entered by the user is stored as a string in variable.
To convert the input to another type (like an integer or float), you need to explicitly cast it:
number_str = input("Enter a number: ")
number_int = int(number_str)
number_float = float(number_str)