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

Python

In this application I do not unstrand why use the function (input) when I read ex: input("the first no: ") . Please help me

6th Aug 2023, 5:15 PM
Ikram Karima
Ikram Karima - avatar
2 Answers
+ 4
Input is to take information from something outside your program. An example is if you want the user to give your program their name, then you need that input.
6th Aug 2023, 5:28 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Input is connected to input device so that user use the program on his/her choice. We don't know about user. By the help of input() . We take information from user.
7th Aug 2023, 5:23 AM
Aashutosh Kumar
Aashutosh Kumar - avatar