What is input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is input?

It is very difficult to learn my English is weak that's why.please tell me in easiest way

4th Dec 2022, 7:52 AM
Karan Upadhyay
Karan Upadhyay - avatar
8 Answers
+ 5
Karan Upadhyay , here are 2 short tutorials about input in python that can be find in the community section: https://www.sololearn.com/learn/Python/2426/?ref=app https://www.sololearn.com/learn/Python/4434/?ref=app
4th Dec 2022, 11:46 AM
Lothar
Lothar - avatar
+ 5
Karan Upadhyay x = input() is a string input like for words or sentences x = int(input()) is for numbers like 1 2 3 4 5
4th Dec 2022, 8:00 AM
BroFar
BroFar - avatar
+ 2
Input = the user enters the value they want. x = input() If the user enters "hello" - x will be equal to "hello". There are more options, if you need more details, write. I try to help
4th Dec 2022, 11:35 AM
Knight
Knight - avatar
+ 2
Input function allows the user to take input as a string in python.
4th Dec 2022, 12:41 PM
Anonymous
Anonymous - avatar
+ 2
We can use input() inbuilt function to take input in python. By default it only take string input like words and sentences. To input different data types we use different functions like for int we use int(input()), for float we use float(input()) and so on.
5th Dec 2022, 12:15 PM
Manas Ranjan Adha
5th Dec 2022, 3:08 PM
MAXON
MAXON - avatar
0
I can't understand please can you send me a video that can I understand
4th Dec 2022, 3:21 PM
Karan Upadhyay
Karan Upadhyay - avatar