← Back to Loops
Question 375
Spell It Out With Spaces
Spell It Out With Spaces
Read a word and print its characters on one line separated by single spaces, using for ch in word with print(ch, end=' '), then a bare print() after the loop to end the line. Input: one line, the word, no prompt. Expected Output shows the spaced letters.
Expected Output:
c o d e= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Loops
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.