Python Readability, the PEP 8 Style Guide, and Learning Latin

Latin and Python Readability

Over the past couple of years, I've decided to start ticking things off my lifetime to-do list. We all have things "we'd like to do at some point when we have time." I finally started carving time out of my days to do these things. In the past two years, I've learned touch-typing (that's right,… Continue reading Python Readability, the PEP 8 Style Guide, and Learning Latin

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)

Python City: Understanding how a Python Program Works (The White Room Series #3)

You've written a Python script or a project containing several modules. You press Run, figuratively or literally. What happens behind the scenes in the microseconds or seconds or minutes it takes for your program to run? You can dive into the details about the internal functioning of Python to learn how a Python program works.… Continue reading Python City: Understanding how a Python Program Works (The White Room Series #3)

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)

Understanding Python Functions With The Function Room (The White Room Series #2)

Python functions as doors

You've probably already learned about defining functions in Python and how to add parameters and return statements. You may even have learned about more advanced features of Python functions. But can you picture exactly what they do and what's really happening behind the scenes when you call a function? In this blog, I'll build on… Continue reading Understanding Python Functions With The Function Room (The White Room Series #2)

Monty Will Help You Learn Python Coding, But Who’s Monty? (The White Room Series #1)

learn python with the White Room analogy

When you learn Python coding, you start by learning about the tools you'll need and the rules for each one of those tools. You learn the syntax of the for loop and what it does, for example. With time, you also learn when to use this tool and when not to use it. What's more… Continue reading Monty Will Help You Learn Python Coding, But Who’s Monty? (The White Room Series #1)

Python List Comprehensions and Michael Phelps’ Olympic Medal Cabinet

Python list comprehensions

Python list comprehensions can look a bit strange at first sight. However, with a bit of practice and experience, they quickly become a go-to tool for a Python programmer. But Python's list comprehensions are not just syntactic sugar that condense three lines of code into one. And they're not there just to make you look… Continue reading Python List Comprehensions and Michael Phelps’ Olympic Medal Cabinet

Stacks and Queues, Deques, and My Daughter’s Teddy Bears

Thanks to my daughter's teddy bears/soft toys/stuffed toys/whatever else you may call them, I now have a better understanding of stacks and queues in Python. I'll get back to stacks and queues in a bit to discuss how to implement them, when to use them, and when not. But first, you'll need to meet my… Continue reading Stacks and Queues, Deques, and My Daughter’s Teddy Bears

Another Python Blog–Here’s Why

python blog

Here's another Python blog. Why? You have surely heard many times that the best way to truly understand something is to teach it to someone else. You're that someone else! So yes, this blog is primarily for my own benefit, but if you find some of these posts useful too, then we'll all benefit! What… Continue reading Another Python Blog–Here’s Why