Home My space log
Language EN (English)

Double it

Python Beginner robot ages 8-10

The problem

Write a function called double. It takes a number n and gives back n times 2.

You will practice: functions, return, multiplying

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