The bigger number · 较大的那个数
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
This one builds on a lesson you haven't finished yet. Do that lesson first: · 此任务基于您尚未完成的课程。请先完成以下课程:
Python Basics · Python 基础 · Making decisions · 做出判断 →
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。
a is 8 and b is 15. Store the bigger of the two in biggest. Do not use max. · a 是 8,b 是 15。把两者中较大的存进 biggest。不要用 max。
Click Run to see the output here. · 点击“运行”查看此处输出。