0

How to use input comand in python

20th Jan 2025, 2:43 PM
Adarsh Singh
Adarsh Singh - avatar
4 Respuestas
+ 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
20th Jan 2025, 3:04 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
20th Jan 2025, 4:01 PM
Lothar
Lothar - avatar
+ 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
20th Jan 2025, 9:38 PM
Irbis [-TEC-]
Irbis [-TEC-] - avatar
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
21st Jan 2025, 3:52 AM
GachaWolf810
GachaWolf810 - avatar