+ 4

Is there a function in python similar to prompt function in javascript?

27th Aug 2019, 3:01 PM
sujay simha
sujay simha - avatar
5 Respuestas
+ 5
😂😂
27th Aug 2019, 3:03 PM
sujay simha
sujay simha - avatar
+ 5
describing the input in the input D'Lite
27th Aug 2019, 3:04 PM
sujay simha
sujay simha - avatar
+ 4
thanks a lot HonFu
27th Aug 2019, 3:12 PM
sujay simha
sujay simha - avatar
+ 3
input()
27th Aug 2019, 3:03 PM
Dlite
Dlite - avatar
+ 2
You have no GUI in basic Python, here on Sololearn not even real interactivity, so there are no popup windows. input, with its limitations, comes closest, because it asks for user input, which is the point. You can add a prompt line, if you like (I usually don't): inp = input('What's your name? ') (The prompt thingy somehow also doesn't work as it should here on Sololearn.)
27th Aug 2019, 3:06 PM
HonFu
HonFu - avatar