Name
raw_input
Synopsis
raw_input(prompt
='')
Writes prompt
to standard output, reads a
line from standard input, and returns the line (without
\n
) as a string. When at end-of-file,
raw_input
raises EOFError
. See
also input in this section.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.