Hunt 2: Colons and spaces
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
English
Colons and spaces
- Python uses a colon
:and spaces to see which lines belong together. - One missing colon or two extra spaces, and the program stops.
- Some bugs give no error: the program runs, but does the wrong thing. Run it and compare.
| Word | Meaning |
|---|---|
| indent | spaces at the start of a line |
| block | the indented lines after a : |
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Your pet is stuck! This program should output jump / jump / jump. Find the bug and fix it.
実行ボタンをクリックして出力を確認してください。
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Your pet is stuck! This program should output yes. Find the bug and fix it.
実行ボタンをクリックして出力を確認してください。
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Your pet is stuck! This program should output 2. Find the bug and fix it.
実行ボタンをクリックして出力を確認してください。
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Your pet is stuck! This program should output Purr. Find the bug and fix it.
実行ボタンをクリックして出力を確認してください。
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Your pet is stuck! This program should output 12. Find the bug and fix it.
実行ボタンをクリックして出力を確認してください。