If you want the input placeholder to say something how do you do it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If you want the input placeholder to say something how do you do it?

Hey guys how do you make an input placeholder in python?

29th Apr 2020, 10:02 PM
Honest Thomas
Honest Thomas - avatar
2 Answers
+ 2
Due to the way is handled input/output in sololearn code playground that's not possible here... but if you run your code on your device, the input argument (parameter) will be printed just before awaiting for user entry... So: inp = input("enter something and hit return to validate: ") have same behavior than: print("enter something and hit return to validate: ",end="") inp = input()
30th Apr 2020, 3:04 AM
visph
visph - avatar
+ 1
Do you mean a prompt? e.g. name = input("Type in your name:- ")
29th Apr 2020, 10:23 PM
rodwynnejones
rodwynnejones - avatar