+ 1

A question???

How do I make a question, just an old fashion what’s your name, and then you input it in! Code please, Also if you have extra time could you give me a program library site that I could look up. Ps I am a big fat begginer.... so lots of info please!

20th Mar 2019, 10:18 PM
Sarah Benchimol
Sarah Benchimol - avatar
2 Answers
+ 4
With the Sololearn code playground, it's impossible to have the input prompt include custom text (although, in an IDE like Pycharm the text within the input function would actually appear within the console and you could type your input there instead), but a workaround would be to print out something like "Enter your name: " and print the input following that to make it seem that way. It could look something like this: print("What's your name?") name = input() print("Hello " + name + "!") Alternatively: name = input("Enter your name: ") print(name)
20th Mar 2019, 10:42 PM
Faisal
Faisal - avatar
+ 1
ps im in python...
20th Mar 2019, 10:21 PM
Sarah Benchimol
Sarah Benchimol - avatar