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 · 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 です。2つのうち大きい方を 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 です。2つのうち大きい方を biggest に格納します。max を使用しないでください。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。