PythonSyntax
Read User Input
Code example
name = input("Name: ")Reads a line of text typed by the user.
In Python, read user input: reads a line of text typed by the user — name = input("Name: ")
name = input("Name: ")name = input("Name: ")Reads a line of text typed by the user.
Use name = input("Name: ").
Use this pattern: name = input("Name: ")
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.