PyDocs

Nav

Python Runtime Services

input

builtins

function
  • input()
  • input(prompt, /)
Read a string from standard input.  The trailing newline is stripped.

The prompt string, if given, is printed to standard output without a
trailing newline before reading input.

If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise
EOFError.
On *nix systems, readline is used if available.
1 Example
>>> s = input('--> ')
--> Monty Python's Flying Circus
>>> s
"Monty Python's Flying Circus"
from the Python docs
See Also
No see-alsos for builtins/input
0 Notes
No notes for input