← Back to Strings
Question 17
Spaced Out Letters
Spaced Out Letters
Read one word and print its characters on one line with a single space after each one, by looping over the word with for character in word: and printing each character with end=' ' so the cursor stays on the same line. Input: one line, the word, no prompt.
Expected Output:
p y t h o n= newline. No newline 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.