Turtle Colors
Choose pen colors.
Meet the Color Turtle! 🐢🎨
Get ready to paint with a turtle! 🐢 In Python we have a tool called turtle that lets us draw on the screen.
The turtle holds a magic pen. When it walks, it leaves a colorful line behind it! ✏️🌈
import turtle
t = turtle.Turtle()
t.forward(100)A Pen That Changes Color
Right now the turtle draws in black. Boring! 😴
We can change the pen color with t.pencolor('red'). Now everything it draws is RED! ❤️
import turtle
t = turtle.Turtle()
t.pencolor('red')
t.forward(100)All lessons in this course
- Turtle Colors
- Filling Shapes
- Many Shapes
- A Colorful Pattern