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

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.

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP