← Back to Strings
Question 47
Acronym From Three Words
Acronym From Three Words
Three words are read into a list. Build their acronym by starting from an empty string and adding the character at index 0 of each word in order inside a for loop, then print the acronym on one line, keeping whatever case the words have. Input: three lines, one word each, no prompts.
Expected Output:
CPU= newline. The output ends with a newline — print one after the last line.
Hints3 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.