Write one yourself
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Functions →
Write one yourself
Write biggest(a, b) that gives back the larger of the two numbers. Do not use max.
Now all three parts are yours: the def line with its two names, an if/else inside it, and a return on each path. Every path must return something.
Write biggest(a, b) that gives back the larger of the two numbers. Do not use max.
Click Run to see the output here.