0

What does it maen by input(": ") ? I know what it is but i dont know why it should look like this!

input(": ")

16th Apr 2020, 6:46 PM
Hosna Hashemi
Hosna Hashemi - avatar
2 Respostas
+ 1
Assuming this is Python you're talking about, it doesn't have to look like that. You can just do input() if you wish. If you want a message to tell the user what they are supposed to input, you can add that within quotes inside the parentheses - input("Please enter a number") for example. Note that, in SoloLearn's Code Playground, you can't prompt the user as all inputs need to be provided at the start. If you use another IDE, it will be as I described above.
17th Apr 2020, 11:07 PM
Russ
Russ - avatar
0
Thanks🙏 Now I got it :)
17th Apr 2020, 11:09 PM
Hosna Hashemi
Hosna Hashemi - avatar