Home My space log
Language EN (English)

Is it even?

Python Beginner robot ages 11-13

The problem

Write a function is_even(n). It gives back True if the whole number n is even, and False if it is odd.

You will practice: True and False, remainder (%), comparing with ==

Mode

Press Tab to indent. Press Esc and then Tab to move on to the next button.

Your code runs in your browser. We do not receive it or save it. Python is downloaded from cdn.jsdelivr.net the first time you run it (about 10 MB).

Test results

      What your code printed