Skip to content

Python Lists

How to reverse a Python List Cover Image

How to Reverse a Python List (6 Ways)

Learn how to use Python to reverse a list, including how to use the reversed function, list indexing, and a python list comprehension.

Python Absolute Value Cover Image

Python Absolute Value: Abs() in Python

Learn how to calculate a Python absolute value using the abs() function, as well as how to calculate in numpy array and a pandas dataframe.

Python Intersection Between Two Lists Cover Image

Python: Intersection Between Two Lists

Learn how to find the intersection between two lists in Python, including using list comprehensions, set methods and the numpy library.

Python Subtract Two Lists Cover Image

Python: Subtract Two Lists (4 Easy Ways!)

Learn how to use Python to subtract two lists, using the numpy library, the zip function, for-loops, as well as list comprehensions.