90.4 I/O

raw_input([prompt])

If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. Example:

>>>
>>> s = raw_input('--> ')
--> Monty Python's Flying Circus
>>> s
"Monty Python's Flying Circus"

more see: https://en.wikibooks.org/wiki/Python_Programming/Input_and_Output

How do you read from stdin in Python?

http://stackoverflow.com/questions/1450393/how-do-you-read-from-stdin-in-python

results matching ""

    No results matching ""