Programming with Python Turtle graphics

Turtles

© Lead Image © Baurzhan Moldabekov, 123RF.com

© Lead Image © Baurzhan Moldabekov, 123RF.com

Article from Issue 231/2020
Author(s): , Author(s):

Create a bulb and tube analog thermometer with a Raspberry Pi and Python Turtle graphics.

Turtle graphics are a great way to get kids started programming. The Python turtle library offers simple step-by-step graphical methods that allow young programmers to create graphics with only a few lines of code.

I found that once my kids understood Turtle basics, we were able to do more advanced Raspberry Pi projects that used sensors, push buttons, and outputs. In this article, I share a Rasp Pi Turtle project that creates a graphic of an "old style" mercury thermometer animated with a Pi temperature sensor.

Getting Started

The Python turtle library is probably already loaded on your Raspberry Pi system, but if it is not, enter:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Workspace: Markdown Tools

    From note-taking applications to wikis – there are plenty of handy tools for working with Markdown-formatted content. Here are a few worth adding to your toolbox.

  • Perl – Memes

    It started off harmlessly enough with a few funny pictures of cats, but eventually it became the Internet phenomenon par excellence. It's no joke: Perl gives you some great tools for building and customizing memes yourself.

  • Python and Node-RED

    Adding Python to your Node-RED arsenal lets you create easy Raspberry Pi robotic and IoT projects.

  • Gran Canaria Desktop Summit: Saints, Gentlemen and Schoolchildren

    At the start of the Gran Canaria Desktop Summit on the Canary Islands, Richard Stallman, Robert Lefkowitz and Walter Bender rallied open source developers in their common tasks.

  • Retroshare

    Communication on the Internet is continuously subject to the risk of being intercepted. We show you how to eliminate curious eavesdroppers.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News