Reading input / user interaction

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Nov 23, 2020

Input

>>> print input.__doc__

input([prompt]) -> value

Equivalent to eval(raw_input(prompt)).

>>> test = input()

['hi']

>>> test

['hi']