← Back to User Input
Question 170
First And Last Name
First And Last Name
Ask for a first name with the prompt First name? and a last name with Last name? (each ending in a space), then print Welcome, <first> <last>. with one space between the two names. Input: two lines, the first name then the last name. The prompts are part of the output and input() does not add a newline, so both prompts and the greeting appear on one line, as shown in Expected Output.
Expected Output:
First name? Last name? Welcome, Ada Lovelace.= 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.