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
In this post we learn about choices and sample: two useful functions in the random module used for generating collections of random values.
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
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
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
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
In this post we dive into GUI development and take an important step towards understanding Tkinter's pack geometry manager.
Python Snippets
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
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
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
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
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
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!