Learn Python Programming Decimal vs float in Python When working with fractions in Python, we tend to use floats, but we also have the decimal module. Learn how to use it, and its benefits over floats.
Python Snippets Python's format Function You may be familiar with Python's format method, but what about the format function? Learn to use Python's formatting language without string interpolation!
Python Snippets Python's Partition Method for Strings In this post we cover a lesser known string method called partition. It has a lot of similarities to split, but there are some interesting differences.
Python Snippets Formatting Integers in Different Bases in Python In this post we dive deeper into Python's formatting syntax, learning about displaying numbers in different bases. We also make a neat colour converter too!
GUI Development Creating Snake Using Tkinter's Canvas Widget (Part 2) In this post we finish off our Snake game using Tkinter's Canvas widget. Learn how to move objects on the Canvas, delete them, or add more.
Python Snippets Nested String Interpolation in Python In this post we continue looking at formatting, this time exploring nested string interpolation, which we can use to dynamically set formatting options.
GUI Development Creating Snake Using Tkinter's Canvas Widget (Part 1) In this post we start work on recreating the popular arcade game, Snake, using Tkinter's versatile Canvas widget.
Python Snippets Formatting Numbers for Printing in Python Learn how to leverage Python's detailed formatting language to control how numbers are displayed in your applications.
Learn Python Programming How to write decorators in Python Decorators in Python can be a confusing topic, particularly for newer students. In this post we'll explain them from the ground up, including how they work, their syntax, and much more!
Python Snippets Python's "Ternary Operator" Learn about conditional statements in Python: a slightly obscure bit of syntax that allows for succinct conditional logic, particularly during assignments.
GUI Development Tkinter's Grid Geometry Manager In this post we dive deeper into GUI development with Tkinter, exploring the grid geometry manager. Grid is a great alternative to pack for complex layouts.
Learn Python Programming How to set up Visual Studio Code for Python development Visual Studio Code is an amazing editor for Python. Here are a few extensions, tips, and tricks I've learned over the years!
Python Snippets Generating a Collection of Random Numbers in Python In this post we learn about choices and sample: two useful functions in the random module used for generating collections of random values.
Python Snippets Updating Python Dictionaries In this snippet post we look at the update method for dictionaries. We can use update to change several values at once or extend dictionaries with new keys.
GUI Development Side values in Tkinter's pack geometry manager This week we continue our journey into GUI development with Tkinter, and explore how to use the side configuration option in the pack geometry manager.
Python Snippets Extending Python Lists In this week's Python snippet post we look at the extend method for lists. Extend works a lot like append, but allows us to append many values at once.
GUI Development Tkinter's Pack Geometry Manager In this post we dive into GUI development and take an important step towards understanding Tkinter's pack geometry manager.
Python Snippets Python Dictionaries and Loops In this post we cover various ways we can iterate over dictionaries. Learn how to use the items and values methods to write more Pythonic loops with dicts.
Python Snippets Python's zip_longest Function zip is an incredibly powerful tool, but it has its limitations. Learn about zip_longest so you can zip collections of any length without losing data!
Coding Interview Problems Coding Interview Problems: Palindromes We're back tackling another common coding interview problem. This time we're tackling palindromes! Avoid common problems and impress at your next interview.
Python Snippets Using zip in Python Python's zip function is extremely powerful and can simplify your code greatly, particularly when working with multiple iterables at the same time. In this post we cover a few ways to use it!
Learn Python Programming How to Start Learning Python Want to start learning Python? Wondering where and how to begin? We'd love to help. In fact, it's what we do!
Python Snippets A Closer Look at Python's Print Function Print is one of the first functions we encounter when learning Python, but it can do a lot more than say "Hello, world!". Learn about print's other options and master this common function!
Learn Python Programming Destructuring in Python In this post we take a look at destructuring, also called "unpacking". We can use it to split a collection into single values, e.g. for multiple assignment.
Python Snippets Python Easter Eggs This week we take a look at some of Python's hidden Easter eggs, including perhaps the most important module in all of Python: antigravity.