Using input and raw input

suggest change

input waits for the user to enter a line and returns that line as a string.

foo = input("Put a message here that asks the user for input")

foo stores whatever text the user provides.

Python 2 called this raw_input. That name was removed in Python 3. Python 2’s input evaluated the line as code; Python 3’s input does not.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents