Input description | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Input description

Hello Does anybody know how to make an input tell you what you have to write? input(): ^ This code gives me a box that says "looks like your program needs an input" or something like that. I want it to tell me "Enter your name" in that box. Shoud I write what I want it to say between () ?

2nd Jun 2020, 6:05 PM
joonas
joonas - avatar
12 Answers
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 When I start python script with input in Sololearn app on my phone on android (may be only in this case). Sololearn popup dialogue for input. This dialogue have not "text" from input("text").
2nd Jun 2020, 6:55 PM
Leonid Selivanov
Leonid Selivanov - avatar
+ 2
Yes but I didn't ask for that. This code doesnt ask an input at all.
2nd Jun 2020, 6:20 PM
joonas
joonas - avatar
+ 2
Here in SoloLearn?
2nd Jun 2020, 6:41 PM
joonas
joonas - avatar
+ 2
Thanks to both of you :)
2nd Jun 2020, 7:00 PM
joonas
joonas - avatar
+ 1
input and print funcs made for console (terminal). This is a limitation of Sololearn. It can't handle arguments of input(). In real console it work fine. Good luck!
2nd Jun 2020, 6:31 PM
Leonid Selivanov
Leonid Selivanov - avatar
+ 1
So I can't make a code asking my name in the "looks like your code needs an input" box?
2nd Jun 2020, 6:41 PM
joonas
joonas - avatar
+ 1
joonas In Sololearn dialogue it just isn't be asked. But it will be asked with normal script execution.
2nd Jun 2020, 6:46 PM
Leonid Selivanov
Leonid Selivanov - avatar
+ 1
Thanks a lot for help!
2nd Jun 2020, 6:47 PM
joonas
joonas - avatar
+ 1
I am pretty tired of the "Seems like your program requires input" box, too.
13th Aug 2020, 12:45 AM
CarliDe
CarliDe - avatar
0
It still doesn't say
2nd Jun 2020, 6:10 PM
joonas
joonas - avatar
0
Sorry for bad English.
2nd Jun 2020, 6:47 PM
Leonid Selivanov
Leonid Selivanov - avatar
0
For Taking Input : x=input(“Enter Your Name “)
4th Jun 2020, 5:28 PM
Rahul Saxena
Rahul Saxena - avatar