i dont know input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i dont know input

plzz tell what is input

16th Apr 2021, 11:15 AM
Karthik
Karthik - avatar
4 Answers
+ 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)
16th Apr 2021, 11:22 AM
Rik Wittkopp
Rik Wittkopp - avatar
16th Apr 2021, 11:22 AM
Coding Cat
Coding Cat - avatar
+ 2
input function which lets you ask a user for some text. https://code.sololearn.com/cDMBIuNDeAef/?ref=app
16th Apr 2021, 11:19 AM
Matias
Matias - avatar
+ 1
~$ python2 >>> name = input_raw("Type name: ") Type name: Kar >>> >>> name Kar >>> exit() ~$ python3 >>> name = input('Type name: ') Type name: Kar >>> name Kar >>>
16th Apr 2021, 11:45 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar