Tag: functions

🌻 Creating a Flower with Python

Python’s Turtle Graphics module is one of the most fun ways to bring coding to life. With just a few lines of code, you can make your turtle draw shapes, patterns, and even full pictures. In this tutorial, we’ll use Python Turtle inside the Trinket IDE to create a flower with petals, a stem, and […]

Creating Randomly Generated Spirographs in Python

Using Python Turtle graphics and the Trinket IDE, I built a program that creates completely unique, randomly generated spirograph patterns every time it runs. This project combines math, programming, and art into something both fun to code and beautiful to watch. And because it runs in Trinket, you don’t need to install anything. Just click […]

This Chest Doesn’t Need a Key, It Has AI!

Some treasure is locked away with keys.Some with secret codes.Mine is guarded by artificial intelligence. Recently, I set out to build something fun, interactive, and educational—a pirate-themed treasure chest made from cardboard that could open and close on its own. But instead of a simple switch, I wanted to give it a brain. That’s where […]