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

0

i dont know input

plzz tell what is input

4/16/2021 11:15:24 AM

Karthik

4 Answers

New Answer

+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/Python-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 >>>