Sunrise: A Python Turtle Animation Using Named Tuples

Flower in sunrise to illustrate a Python turtle animation using named tuples

You may think the Python turtle module isn't useful for anything. "It's just for kids", is what many think of it. However, this module allows you to explore and experiment with many areas of Python. In this article, you'll write a Python turtle animation of a sunrise scene using named tuples: https://videopress.com/v/OgwI5VyJ?resizeToParent=true&cover=true&preloadContent=metadata&useAverageColor=true As you work… Continue reading Sunrise: A Python Turtle Animation Using Named Tuples

Understanding Two-Point Perspective Drawing using Python

Have you ever struggled to truly understand a topic? Perhaps one related to your work, or maybe linked to a hobby? Writing a computer program to investigate the subject can often help you get that extra level of understanding you're looking for. I've often used this method to understand fairly abstract physics concepts in my… Continue reading Understanding Two-Point Perspective Drawing using Python

Practise Using Lists, Tuples, Dictionaries, and Sets in Python With the Chaotic Balls Animation

Using lists tuples dictionaries and sets in Python

One of the early topics covered when learning to code deals with the built-in data structures in Python. Lists are usually learned early on, followed by dictionaries and tuples. Sets are not normally one of the earliest topics covered. However, that's not because they're complex but because they're used less often in Python. Understanding the… Continue reading Practise Using Lists, Tuples, Dictionaries, and Sets in Python With the Chaotic Balls Animation

Simulating Orbiting Planets in a Solar System Using Python (Orbiting Planets Series #1)

Orbiting Planets in Solar System

One of the many applications of programming in Python is simulating the real world. In some cases, the simulation is a way of solving a problem that would be difficult or impossible to solve using other means. In this article, you'll explore simulating orbiting planets in a solar system using Python. You'll create code that… Continue reading Simulating Orbiting Planets in a Solar System Using Python (Orbiting Planets Series #1)

Bouncing Balls Using Object-Oriented Programming in Python (Bouncing Ball Series #2)

Using Object-Oriented Programming using Python to Simulate Bouncing Balls

In this week's article, I'll discuss an example of using object-oriented programming in Python to create a real-world simulation. I'll build on the code from the first article in the Bouncing Ball Series, in which I looked at the simulation of a single bouncing ball in Python. This article will extend this simulation to many… Continue reading Bouncing Balls Using Object-Oriented Programming in Python (Bouncing Ball Series #2)

The Real World in Python: Coding A Bouncing Ball (Bouncing Ball Series #1)

Simulating a Bouncing Ball in Python

The real world can be a difficult place to understand. Whether you're trying to make sense of the people that make up the real world and their actions, or the physical world itself, things are never easy. Sometimes, coding can help understand what's going on and maybe, just maybe, help find a solution to a… Continue reading The Real World in Python: Coding A Bouncing Ball (Bouncing Ball Series #1)