← Back to User Input
Question 1
Greet By Name
Greet By Name
Ask for the person's name with the prompt What is your name? (there is a space after the question mark), then greet them in the form Hello, <name>. with a full stop. Input: one line, the name. The prompt is part of the output, and input() does not move to a new line, so the greeting follows the prompt on the same line, as shown in Expected Output.
Expected Output:
What is your name? Hello, Giselle.= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.