Skip to content

Python

Best Python Books Beginner Advanced Cover Image

Best Python Books in 2023 (Beginner & Advanced)

In this post, we’re going to explore the best books to learn Python in 2023, whether you’re a beginner or an advanced user. Finding the right book to learn can make or break your learning journey. Python is an incredibly

Move a Pandas DataFrame Column to Position (Start and End) Cover Image

Move a Pandas DataFrame Column to Position (Start and End)

Being able to work with and manipulate Pandas DataFrames is an essential skill for anyone working in data analysis or data science. As Pandas becomes the ubiquitous tool for data analysts, being able to get DataFrames ready for presentation is

How to Append a Dictionary to a List in Python Cover Image

How to Append a Dictionary to a List in Python

Python lists are mutable objects that can contain different data types. Because of this, you’ll often find yourself appending items to lists. In this tutorial, you’ll learn how to append a dictionary to a list in Python. While this may

Python Ord and Chr Functions Working with Unicode Cover Image

Python Ord and Chr Functions: Working with Unicode

In this tutorial, you’ll learn how to use the Python ord and chr functions to allow you to work better with Unicode. The Unicode standard has replaced many confusing encodings and is used to represent each character (including emojis) with

How to Remove a Prefix or Suffix from a String in Python

How to Remove a Prefix or Suffix from a String in Python

When working with strings in Python, you will often find yourself needing to remove a prefix or a suffix. For example, file names may be prefixed with a certain string and you want to remove that prefix when renaming files.

str title() and str istitle Convert a String to Title Case in Python Cover Image

Convert a String to Title Case in Python with str.title()

Being able to work with strings is an essential skill for a Python developer of any skill level. One of the most common operations you’ll run into is needing to capitalize different characters. For example, you may want to convert

How to Append a String to a List in Python

How to Append a String to a List in Python

Python lists are a common data type you’ll use to store data. Because they’re mutable (meaning they can be changed) and heterogeneous (meaning they can store different types of data), Python lists are very popular. Being able to add items

How to Zip and Unzip Files in Python Cover image

How to Zip and Unzip Files in Python

In many cases, you’ll encounter zipped files (or need to zip files yourself). Because zip files are so common, being able to work with them programmatically is an important skill. In this tutorial, you’ll learn how to zip and unzip

How to Move Files in Python (os, shutil) Cover Image

How to Move Files in Python (os, shutil)

Automating tasks such as moving files or renaming files is an essential skill for any Python developer. Because Python is a general-purpose programming language, it offers many possibilities for working with and automating file workflows. In this tutorial, you’ll learn

How to Rename Files in Python with os.rename() Cover Image

How to Rename Files in Python with os.rename()

Being able to work with files is an essential skill for a Python developer of any skill level. In particular, Python can be used to easily rename a single file or multiple files. Being able to automate repetitive tasks, such