Project: Creative Design
Put your turtle drawing skills to the test by customizing shapes, colors, and angles.
We'll cover the following...
We'll cover the following...
Task
Try changing:
The number of sides
The angle
The color
import turtle
pen = turtle.Turtle()
pen.color("purple")
for _ in range(6):
pen.forward(80)
pen.right(60)Drawing a hexagon with custom color and angle
You’re making beautiful geometric art.
If you’re stuck, click the “Show Solution” button.
Show Solution
Bonus: Draw a spiral
import turtle
pen = turtle.Turtle()
pen.color("red")
for i in range(50):
pen.forward(i * 5)
pen.right(45)Creating a spiral pattern that grows outward with each step
Try tweaking the values to create different patterns.
Quick recap
We learned:
How to use the turtle module to draw shapes
How to use loops for patterns
How to customize the pen’s color, speed, and thickness
What’s next?
We’ve explored code and creativity! Now let’s level up and learn how to use Python’s built-in libraries to unlock powerful tools and features.