Liftoff
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 · While loops →
English
Liftoff
Count down from 5 to 1, then print Liftoff!.
A while loop repeats as long as its condition is true, so something inside the loop must change the variable, or the loop never stops. Code written after the loop, without indentation, runs once when the loop ends.
日本語
ライフオフ
5 から 1 までカウントダウンし、最後に Liftoff! を出力します。
whileループは条件が真である限り繰り返されるため、ループ内の何らかの操作で変数を変化させなければ、ループは終了しません。ループの後にインデントなしで記述されたコードは、ループ終了時に一度だけ実行されます。
Use a while loop to count down from 5 to 1, one number per line, then print Liftoff!.
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。