0
What is input?(python)
I want to know what is input. And when to use input. Please answer easily!đ Thank you~
2 Answers
+ 3
Input means to give command to computer then computer gives their answer /output
x=input ("what is your name:") - input
print (x) - output
+ 7
Input is a command given by user.
It allows user to enter as per the program as his wish.
For example:
a=input("Please enter something" )
print(a)
Suppose I wrote "Coool" in the input then, I'll get back the same text as output for this program.
U can input values whenever the program needs to work according to its users desires.
Play around with the codes in code playground, you'll understand much better.