i dont know input | Sololearn: Learn to code for FREE!


i dont know input

plzz tell what is input

4/16/2021 11:15:24 AM


4 Answers

New Answer


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)


Have a look here at lesson 16.1 https://www.sololearn.com/Course/Python-for-Beginners/?ref=app


input function which lets you ask a user for some text. https://code.sololearn.com/cDMBIuNDeAef/?ref=app


~$ python2 >>> name = input_raw("Type name: ") Type name: Kar >>> >>> name Kar >>> exit() ~$ python3 >>> name = input('Type name: ') Type name: Kar >>> name Kar >>>