🌸
Pink flower
Twelve circular petals rotate around a golden center.
Sprout· ages 8–1015 minturtle.circlefor loopsrotation
flower.py
520×520
First load pulls ~10 MB of Python. Only happens once — the browser caches it after.
What should the output look like?
A flower with pink petals and a yellow dot in the middle.
📖
How this works
Twelve full circles all drawn from the same starting point, but the turtle turns 30° between each. Because Python's turtle draws each circle off to one side, rotating between them creates petals arranged around a center.
Your turn — try these
- 1Change `range(12)` to `range(24)` — more petals!
- 2Change `right(30)` to `right(45)`. What shape do you get now?
- 3Give each petal a different color from a list — like the rainbow spiral does.