Complete the codeExercise 6/6Elementary20 XP

A die

Task

The function hod_kockou() should return a random whole number from 1 to 6 (inclusive). Fill in ___.

Examples

  • Call

    hody = [hod_kockou() for _ in range(300)]
    print(all(type(h) == int for h in hody))
    print(min(hody), max(hody))
    print(len(set(hody)))

    Expected output

    True
    1 6
    6

Rules

  • Replace ___ with the right code.

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.