Smallest without min · minを使わず最小値を求める
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 · Functions →
English
Smallest without min
Return the smallest number in a list without using min.
It is the mirror image of the previous drill: start with the first item and replace it whenever you meet a smaller one.
日本語
minを使わない最小値
minを使用せずに、リスト内の最小値を返します。
これは前回の演習の逆です: 最初の項目から始めて、より小さい値に出会った每次都替えます。
Write smallest(nums) that returns the smallest number in the list, without using min. · リストの中で最小の数を返すsmallest(nums)を書いてください。minは使用しないでください。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。