# Python Posts

## Python Set Intersection: Guide with Examples

In this post, you’ll learn how to find the intersection between two or more sets in Python. Sets in Python are a built-in data type, where items are unordered, unindexed, and unique. By finding the intersection between two or more… Read More »Python Set Intersection: Guide with Examples

## Python range(): A Complete Guide (w/ Examples)

The Python range function is used to generate a sequence of numbers between a given range of values. In this guide, you’ll learn all you need to know about the Python range() function by way of helpful examples. While on… Read More »Python range(): A Complete Guide (w/ Examples)

## Python frozenset: Overview and Examples

In this tutorial, you’ll learn how to use the Python frozenset data structure. The frozenset in Python is often overlooked and many Python users don’t even know that it exists. The frozenset is a data structure that emulates the set,… Read More »Python frozenset: Overview and Examples

## Python Divmod Function & Examples

In this tutorial, you’ll learn how to use the Python divmod() function. The divmod() function takes two numbers are its arguments and returns their quotient and remainder. The function provides a number of incredibly helpful applications, such as being able… Read More »Python Divmod Function & Examples

## How to Create 3D Scatterplots in Matplotlib

In this tutorial, you’ll learn how to make 3D scatterplots using Matplotlib. Being able to visualize data in three dimensions can be an important step in clearly articulating data, especially in science and machine learning. By the end of this… Read More »How to Create 3D Scatterplots in Matplotlib

## How to Calculate Percentiles in NumPy with np.percentile

In this tutorial, you’ll learn how to calculate percentiles in NumPy using the np.percentile() function. A percentile is a measure that indicates the value below which a percentage of observations in a group fall. For example, the 50th percentile will… Read More »How to Calculate Percentiles in NumPy with np.percentile

## How to Change Font Size in Matplotlib Plot

In this tutorial, you’ll learn how to change font sizes on a Matplotlib plot. You’ll learn everything you need to know to customize your Matplotlib plot to have exactly the font sizes you want. Data visualization is an incredible tool… Read More »How to Change Font Size in Matplotlib Plot

## Set Marker Size in Matplotlib Scatterplots

In this tutorial, you’ll learn how to define and set the marker size in Matplotlib scatterplots. Being able to control the size of your Matplotlib scatterplots allows you to add extra information to your scatterplots. This allows you to communicate… Read More »Set Marker Size in Matplotlib Scatterplots

## Difference Between Array and List in Python

In this post, you’ll learn the difference between arrays and lists in Python. Both these data structures let you store data in Python and share many similar properties. However, they also let you do quite different things and knowing when… Read More »Difference Between Array and List in Python

## Python: Differences Between Lists and Tuples

In this tutorial, you’ll learn the differences between Python lists and tuples. Lists and tuples are fundamental Python container data structures. On the surface, they seem very similar. However, there are a number of unique differences between them that makes… Read More »Python: Differences Between Lists and Tuples

## How to Fix: Python indentationerror: unindent does not match any outer indentation level Solution

In this tutorial, you’ll learn how to fix a common error you’ll encounter in Python, the indentation error. Indenting your code is an important function for writing useful programs. However, indenting code improperly will raise the following error: “Python indentationerror:… Read More »How to Fix: Python indentationerror: unindent does not match any outer indentation level Solution

## How to Change Plot and Figure Size in Matplotlib

In this tutorial, you’ll learn how to change the plot and figure sizes in Matplotlib. Data visualization is a valuable tool to help you communicate your data. Being able to customize exactly how your plots are sized gives you the… Read More »How to Change Plot and Figure Size in Matplotlib