← All Python lessonsLesson 8 of 8 · ⭐ 25 XP

Make a Machine

⭐ 0 XP · 🔥 0 day streak

A function is a little machine you build once and use forever. It takes an input in, does its job, and hands an answer back out with the word return.

Your mission: finish the double machine so it hands back its input times two, and earn your Python certificate. The lines below the machine already test it with 4 and 9.

Checks

    Get your certificate 🏆