0

inputs in solo learn python

is there a way in python to display what you want the input to do ( for example for it to say enter you age before you enter the input) really bugging me and messing with my creativity for codes. ta ben

16th Nov 2017, 4:59 PM
Ben Green
Ben Green - avatar
4 Answers
+ 7
In Sololearn -- no. It just displays a standard window (still printing it out after, during the execution).
16th Nov 2017, 5:19 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 2
I misread. As they said, SoloLearn is limited in that way, so you'll just need to know what inputs you require prior to execution since it won't prompt you as it would in a normal scenario.
16th Nov 2017, 5:51 PM
AgentSmith
+ 1
print("Please enter your age: ") userInput = input() It's really as simple as just printing it to the user prior to trying to obtain input.
16th Nov 2017, 5:13 PM
AgentSmith
+ 1
As Kuba SiekierzyƄski has pointed, in SoloLearn there is no way to achive that But on PC and in other cases it's as simple as printing values to the screen: name = input("Enter your name: ")
16th Nov 2017, 5:25 PM
Jakub M.
Jakub M. - avatar