Skip to content · ⁨본문 바로가기⁩

The bigger number · ⁨더 큰 수⁩

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.

한국어

큰 숫자

a은 8이고 b은 15입니다. 두 숫자 중 큰 것을 biggest에 저장합니다. max을 사용하지 마십시오.

브랜치는 변수를 설정할 수 있으며, 단순히 출력할 필요는 없습니다. 모든 경로에 biggest에 값을 부여하지 않으면 한 경로에서 정의되지 않아 Python이 NameError 오류를 발생시킵니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP