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.
출력을 보려면 '실행'을 클릭하세요.