The bigger number
이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · Making decisions →
English
The bigger number
Read two whole numbers a and b, one per line, with int(input()) (for example 8 and 15). Store the bigger one in biggest and print it. If they are equal, print equal instead.
A branch can set a variable, not only print. Give biggest a value on every path that prints it, or one path leaves it undefined and Python says NameError. Test the tie first: max alone cannot tell you that the two numbers were equal.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Read two whole numbers a 및 b, one per line, with int(input()). Store the bigger one in biggest and print it. If they are equal, print equal instead.
출력을 보려면 '실행'을 클릭하세요.