+ 3
User input
In python , how do you do user input ? So say You input a number for x. And then that number is used later on. I know how to in the coding section of the program , youâd do x = whatever . But I want it to come up when I press run it says input number x =
4 Answers
+ 1
Thanks thatâs what I needed! Now , is only way of inputting the info at the start of the program on the pop up box?
+ 2
To do that you would need this code:
x = input(âInput a numberâ)
print(âx = â, input)
#Run:
Input a number: 7
#Outputs
x = 7
+ 2
Yeah, if you get the official python download on your computer it will just come up as words with no box thatâs just how sololearns code playground makes you input
0
Okay, thatâs a shame but I can work with that. If I was going to download on my computer what version does SoloLearn use? So I know which one to get.