Reading input / user interaction
Published: Wednesday, Dec 26, 2007 Last modified: Monday, Dec 9, 2024
Input
>>> print input.__doc__
input([prompt]) -> value
Equivalent to eval(raw_input(prompt)).
>>> test = input()
['hi']
>>> test
['hi']
Input
>>> print input.__doc__
input([prompt]) -> value
Equivalent to eval(raw_input(prompt)).
>>> test = input()
['hi']
>>> test
['hi']