Flask Flashing messages with Flask Learn how to temporarily show messages in your websites when using Flask, by using the built-in message flashing mechanism. It's flexible yet straightforward!
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.
Flask Handling the next URL when logging in with Flask Learn how to redirect users to their intended destination after logging in, instead of a default "profile" page every time. Simple, but can have a big impact in user experience!
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.
Flask Protecting endpoints in Flask apps by requiring login In this post we'll learn to prevent unauthorised logins to our Flask endpoints. We'll also look at decorators so that we can secure endpoints with a single line of code for each!
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!
Flask How to add user logins to your Flask website Authentication (log in and sign up) can be tricky. In this blog post we'll guide you through adding it to a website or web app built entirely with Flask!
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.