Write a programElementary20 XPExercise 12/16
Characters and words
Task
The program reads a sentence and prints two lines: the number of characters without spaces and the number of words.
Words are separated by one or more spaces, and there may be spaces at the start and at the end of the sentence too.
Examples
Input
Ahoj ako sa mas
Expected output
12 4
After you submit, 3 hidden tests will also check your solution: a single word, a sentence with a full stop, several spaces in a row.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.