In Python, we often run into scenarios where we need to merge two or more lists. This is also called list concatenation, and Python provides multiple methods for accomplishing this.
Python is howchoo's favorite programming language. We believe python promotes the most organized and performant codebase possible. We also love Django so, naturally, we love Python. Fun fact: Python's name is derived from the television series Monty Python's flying circus. It's very common to find references to Monty Python in Python tutorials.
It's getting hot in here (so hot), so let's just write some code.
Find and fix slow running Python unit tests
In Python, range is an immutable sequence type, meaning it's a class that generates a sequence of numbers that cannot be modified.
In this guide we'll cover how to merge two (or more) dictionaries in Python. There are a few ways to do it, so we'll cover multiple methods.
Python's zip function allows us to easily map elements of the same index in multiple containers.
A comprehensive guide on Python "for" loops
Rather than reinvent the wheel, a good Pythonista will make use of the many, many great third-party Python packages and frameworks. This guide will show you how to install packages with pip.
By default, Django migrations are run only once. But sometimes we need to rerun a Django migration, especially when testing custom migrations during development.
When learning object oriented programming in Python, there can be a few gotchas when it comes to distinguishing between class and instance variables.
The goal for this guide is to demonstrate the most commonly used arithmetic operators. You should try to become familiar with each of these as they will be used in all kinds of Python applications.