0
i dont know input
plzz tell what is input
4 ответов
+ 3
User Input is normally simply referred to as input.
It allows the user to input values into the code in order to generate an output -> result
There are various inputs in Python
input() allows a string input
int(input()) allows integers
float(input()) allows decimals
An example code:
name = input() # enter your name
print(name)
+ 3
Have a look here
at lesson 16.1
https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK-for-Beginners/?ref=app
+ 2
input function which lets you ask a user for some text.
https://code.sololearn.com/cDMBIuNDeAef/?ref=app
+ 1
~$ python2
>>> name = input_raw("Type name: ")
Type name: Kar
>>>
>>> name
Kar
>>> exit()
~$ python3
>>> name = input('Type name: ')
Type name: Kar
>>> name
Kar
>>>