Lesson 4: Stars
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
English
Turn more than you need
- A star is a polygon where the turtle turns more at each corner.
- For a 5-point star, turn 144 degrees. The turtle goes round twice: 5 × 144 = 720.
Words for this lesson
| Word | Meaning |
|---|---|
| point | a sharp corner of a star |
| right | turn the other way (clockwise) |
English
A star
import turtle
for i in range(5):
turtle.forward(150)
turtle.right(144)
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Draw a 5-point star with lines of 200 steps. Turn right(144) at each point.
実行ボタンをクリックして出力を確認してください。
難易度 3/5 · 200 コイン + 今日初回達成時の小ボーナス
Draw a 9-point star: 9 lines of 150 steps, turning right(160) each time.
実行ボタンをクリックして出力を確認してください。