113k views
1 vote
We use _____command to get data from the user? (python)

User MungeWrath
by
3.8k points

1 Answer

3 votes

Answer:

INPUT

Step-by-step explanation:

EXAMPLE PYTHON CODE

_______________________________________________________

INPUT CODE:

_______________________________________________________

foo = input('foo: ')#Have some text printed before the input field

bar = foo

print(bar)

_______________________________________________________

OUTPUT CODE:

_______________________________________________________

foo: Hello World!

Hello World!

>>> bar

'Hello World!'

>>>foo

'Hello World!'

User Robert Taylor
by
4.3k points