0Pricing
Coding for Kids · Lesson

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

  1. Turtle Colors
  2. Filling Shapes
  3. Many Shapes
  4. A Colorful Pattern
← Back to Coding for Kids