+ 4

Python input() - what am I missing?

I'm just starting to learn Python and I'm not getting the expected result with input (). The following is a comment I added to my practice code. Instead of seeing the String I get a box that says "looks like your program needs some input". What am I missing please as this generic message would be useless to the end user? # input box - this is not working as I expected as you don't see the text string "Enter something:" until the print statement. userInput = input("Enter something:") print(userInput)

17th Aug 2017, 10:04 PM
Duncan
Duncan - avatar
5 Respostas
+ 12
This is the limitation of Sololearn's code playground. Try running on an exteenal application. BTW it appears AFTER your input
17th Aug 2017, 11:17 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 8
Mind my bad spelling
17th Aug 2017, 11:55 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
install qpython3 for android...
18th Aug 2017, 3:31 AM
Ubaid Siddiqui
Ubaid Siddiqui - avatar
+ 5
if you use it at your computer you will see it but here the engine of sololearn is not showing it till you press enter do not brother yourself you do right ah by the way fyi if you need to input more than one data press enter and make second line before submit
17th Aug 2017, 11:14 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 3
Thank you both, at least I know I'm not going crazy :)
17th Aug 2017, 11:54 PM
Duncan
Duncan - avatar