CJCoding With Joseph
15free / daySign inCreate account

First Letters

The second element of the list names is read from input() with no prompt. Loop over the names with a for loop and print the first character of each one, all on a single line separated by single spaces, by giving print the argument end=' '; after the loop call print() once to end the line. Input: one line, a name. Trailing spaces are ignored.

Expected Output:

G M O L

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Lists
📥 Auto-Input:
Maya\n
This input is automatically fed to your program's stdin
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.