The bigger one · O maior deles
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Esta página precisa de um navegador recente (com suporte a SharedArrayBuffer). Por favor, atualize Chrome, Edge, Firefox ou Safari para a versão mais recente.
This one builds on a lesson you haven't finished yet. Do that lesson first: · Este depende de uma lição que você não terminou. Faça essa lição primeiro:
Python Basics · Noções Básicas de Python · Functions · Funções →
English
The bigger one
Return the larger of the two. An if can compare them: if a > b, return a, otherwise return b.
Português
O maior
Devolve o maior dos dois. Um if pode compará-los: se a > b, devolve a, caso contrário devolve b.
Complete bigger(a, b): return the larger of a and · e b. · Complete bigger(a, b): retorne o maior entre a e b.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.