Adding Colors
Paint your drawings with colors.
Adding Colors is a free Coding for Kids lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Add Some Color!
Hello artist! 🎨🌈 Plain lines are nice, but COLORS make art pop!
Today our turtle becomes a painter!
Picking a Pen Color
We use t.color("red") to choose the line color. 🔴
Try blue, green, purple, or pink!
A Red Square
Let us draw a red square. So bright! 🔴⬜
import turtle
t = turtle.Turtle()
t.color("red")
for i in range(4):
t.forward(100)
t.right(90)
turtle.done()Color Names Are Easy
Python knows lots of colors by name! 🌈
- "blue" 💙
- "green" 💚
- "orange" 🧡
- "purple" 💜
Filling Shapes With Color
Lines are colorful, but we can also fill a shape solid! 🎨
We use begin_fill() and end_fill().
A Filled Triangle
Put the shape between begin_fill and end_fill. The turtle paints it solid! 🔺
import turtle
t = turtle.Turtle()
t.color("green")
t.begin_fill()
for i in range(3):
t.forward(100)
t.right(120)
t.end_fill()
turtle.done()Solid and Bright!
Wow! 🎉 The triangle is filled with green!
begin_fill() says "start painting" and end_fill() says "done painting".
Outline and Fill Colors
You can even pick two colors: one for the line, one for the fill! 🖍️
import turtle
t = turtle.Turtle()
t.color("blue", "yellow")
t.begin_fill()
for i in range(4):
t.forward(100)
t.right(90)
t.end_fill()
turtle.done()Two-Color Magic
That square has a blue outline and a yellow inside! 💙💛
So fancy! You are a real artist now. 🖼️
Make a Rainbow
Try changing colors between shapes to make a rainbow of art! 🌈
The screen is your canvas. Go wild! 🎨
Color Champion!
You learned color(), begin_fill(), and end_fill(). 🏆
Your turtle art is colorful now!
Quick Check
Color quiz! 🎨
Turtle Artist!
Amazing! 🎉 You finished the Drawing with Turtle course!
You can draw lines, shapes, and add colors. Your art is awesome! 🖼️🐢
Frequently asked questions
Is the “Adding Colors” lesson free?
Yes — the full text of “Adding Colors” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.
What will I learn in “Adding Colors”?
Paint your drawings with colors. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Coding for Kids?
No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Adding Colors” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Coding for Kids lesson?
Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Meet the Turtle
- Drawing Lines and Turns
- Drawing Shapes
- Adding Colors