The bigger one
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 →
The bigger one
Return the larger of the two. An if can compare them: if a > b, return a, otherwise return b.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Complete bigger(a, b): return the larger of a and b.
Click Run to see the output here.