Using input and raw input
suggest changeinput 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents