Use of input() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Use of input()

I'm just slightly at a loss of when I would use this since it seem that all it does is be a variable usable 1 time.

4th Apr 2017, 8:12 PM
Ken Dragon
Ken Dragon - avatar
2 Answers
+ 5
It is used to receive user input. Example ,you and a calculator, You can receive one or more inputs,and then can add those and display the answer.
4th Apr 2017, 8:16 PM
Meharban Singh
Meharban Singh - avatar
+ 2
To use multiple inputs you just make more (example) Z =(input("")) X =(input("")) Y =(input(""))
4th Apr 2017, 11:50 PM
DRAGONGAMING
DRAGONGAMING  - avatar