0
How to use input comand in python
4 odpowiedzi
+ 3
Try to perform a little search before asking, you'll find the answer much more quickly and it's an important programming skill to be able to look up information.
https://sololearn.com/compiler-playground/W3uiji9X28C1/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
+ 1
Adarsh Singh ,
> your profile shows that you already have started with the tutorial `introduction to python`.
we can not see how far you have proceeded upto now. but it looks like you need to get a bit more familiar with the basics of python.
> so please re-read the required lessons and proceed learning. the print() statement and other required topic of python are explained there.
+ 1
https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/ref_func_input.asp
just google it up before asking, it saves you lots of time
0
input()
To get an input and
x = input()
To store the result, with x being whatever variable name you need.
An example could look like this
name = input()
print(name)
This would display whatever the user inputted.
I believe int(input()) is for integer only inputs but id have to test that.
Thats a pretty basic summary of inputs