Learn Python Programming 30 Days Of Python 30 Days Of Python is a series that guides you through the initial stages of learning to code with Python. Totally free, with dozens of exercises and projects to complete!
GUI Development How to add Menus to Tkinter applications Learn how to add menus to your GUI applications using Tkinter's Menu widget!
Python Snippets Assignment expressions in Python Learn about Python's new assignment expression syntax and walrus operator. Assignment expressions can cut down on boilerplate code and improve efficiency!
Learn Python Programming Writing Clean Python In this post we talk about some tips and techniques for writing clean, readable Python. Avoid common style mistakes and write beautiful Python code!
Python Snippets Python's namedtuples Learn how to use the collection module's namedtuples to make your Python code even more clear and readable!
Python Snippets Python's divmod Function Learn all about Python's divmod function, which allows us to easily perform floor division and modulo operations in one go!
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.
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.
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!