All posts by Josh C

Troubleshooting Bugs (Part 1): Logging in Python 3

Introduction At the end of the last lesson, we encountered a run time error in our program. In this lesson we will learn some techniques to understand and track what our program is doing and help us to identify and fix errors. This is a two parter. Part 1 is on logging. Part 2 is … Continue reading Troubleshooting Bugs (Part 1): Logging in Python 3 →

Input from the Command Line and Files with Python 3

Introduction So far we’ve been covering how to print messages to the console. This is useful for displaying information to your user and logging what is happening in your program. Sometimes you need to receive input from the user as well. Again we will revisit the example of a video game. Last time we made … Continue reading Input from the Command Line and Files with Python 3 →

Variables in Python 3 – Part 2: Text

Introduction Lets continue with the idea of a video game that we introduced in the first part of this article. Imagine your player has a name. This could be hard coded, but what if the player gets to pick the name, in which case it is dynamic. This would be a case where a text … Continue reading Variables in Python 3 – Part 2: Text →