Skip to content · ⁨Pular para o conteúdo⁩

The bigger number · ⁨O número maior⁩

English

The bigger number

a is 8 and b is 15. Store the bigger of the two in biggest. Do not use max.

A branch can set a variable, not only print. Give biggest a value on both paths, or one path leaves it undefined and Python says NameError.

Português

O número maior

a é 8 e b é 15. Armazene o maior dos dois em biggest. Não use max.

Um ramo pode definir uma variável, não apenas imprimir. Dê a biggest um valor em ambos os caminhos, ou um deles a deixará indefinida e o Python dirá NameError.

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP