Reading input / user interaction
Published: Wednesday, Dec 26, 2007 Last modified: Tuesday, Nov 26, 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']