Writing on these pages is not enough. I want to meet you, interact with you, answer your questions, discover new things with you. That's why I'm launching The Python Coding Programme. It's not just any Python beginner's course—it's an active mentoring programme with live sessions. It has very small groups and a private forum to… Continue reading The Python Coding Programme: A Live Course for Beginners With Small Cohorts & Active Mentoring
Tag: python
Anatomy of a 2D Game using Python’s turtle and Object-Oriented Programming
When I was young, we played arcade games in their original form on tall rectangular coin-operated machines with buttons and joysticks. These games had a resurgence as smartphone apps in recent years, useful to keep one occupied during a long commute. In this article, I'll resurrect one as a 2D Python game and use it… Continue reading Anatomy of a 2D Game using Python’s turtle and Object-Oriented Programming
The Python Coding Place Is Coming Soon…
Allow me a rare blog post which is not about some Python topic or a step-by-step tutorial. We're excited that The Python Coding Place is coming soon. As the name says, this will be the place to learn to code in Python. In this brief post, I'll highlight what The Place is all about The… Continue reading The Python Coding Place Is Coming Soon…
Mini-Post: Exploring Python Functions Through Experimentation
Read the docs. Look at the source code. Yes, these are great tips to figure out what's happening underneath the hood. But sometimes you want to do a bit of experimentation and exploration of your own first. It's more fun this way. And sometimes more instructive, too. Here's something I came across today which I… Continue reading Mini-Post: Exploring Python Functions Through Experimentation
Shallow and Deep Copy in Python and How to Use __copy__()
You need to make a copy of an object in a Python program. How difficult can it be? Not very. But you also need to know the difference between shallow and deep copy in Python and decide which one you need. In this article, you'll read about the difference between shallow and deep copy when… Continue reading Shallow and Deep Copy in Python and How to Use __copy__()
Sunrise: 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
Do You Really Know What Sines and Cosines Are? Visualising Maths Using Python and Turtle
Have your Apollo 11 moment: A Python Lunar Landing game using the turtle module
Debugging Python Code Is Like Detective Work — Let’s Investigate
Debugging Python code is not a mysterious art form. It's like a detective solving a mystery. This analogy comes from one of my favourite programming aphorisms: "Debugging is like being the detective in a crime movie where you are also the murderer" (Felipe Fortes). So what can real detectives tell us about debugging Python code?… Continue reading Debugging Python Code Is Like Detective Work — Let’s Investigate
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