← Back to Strings
Question 36
Short Form Of A Name
Short Form Of A Name
Read a first name and a last name and print the short form: the first initial, a dot, a space, then the full last name, as in J. Smith, built with one f-string that indexes the first name at 0. Input: two lines, the first name then the last name, no prompts.
Expected Output:
G. Park= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Strings
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.