Complete the codeExercise 6/6Elementary20 XP

The number of different words

Task

The program reads a line of words separated by spaces and prints how many different words it contains. Fill in ___.

Examples

  • Input

    mačka pes mačka myš

    Expected output

    3

Rules

  • Replace ___ with the right code.

After you submit, 2 hidden tests will also check your solution: the same word again and again, a single word.

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.