CJCoding With Joseph
15free / daySign inCreate account

Length Of Each Word

Three words are read into a list for you. Loop over the list and print each word followed by a space and the number of characters it has (len() gives that), one word per line in the order they were typed. Input: three lines, one word each, no prompts. The output has three lines.

Expected Output:

apple 5
fig 3
banana 6

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

Hints2 available
Topics:
Strings
📥 Auto-Input:
apple\nfig\nbanana\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.