← Back to Strings
Question 11
Bookends Of A Word
Bookends Of A Word
Read one word and print its first and last characters joined by three dots, in the form <first>...<last> with nothing else on the line. Input: one line, the word, no prompt. Use index 0 for the first character and -1 for the last one inside a single f-string.
Expected Output:
p...n= 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.