4Drawing with Turtles

Image

A turtle in Python is not quite like a turtle in the real world. We know a turtle as a reptile that moves around very slowly and carries its house on its back. In the world of Python, a turtle is a small, black arrow that moves slowly around the screen. Actually, considering that a Python turtle leaves a trail as it moves around the screen, it’s less like a turtle and more like a snail or slug.

In this chapter, we’ll use a Python turtle to learn the basics of computer graphics by drawing some simple shapes and lines.

Using Python’s Turtle Module

A module in Python is a way for programmers to make useful code available for ...

Get Python for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.