Python Lists

Python Clear List Cover Image

4 Ways to Clear a Python List

Learn how to use Python to clear a list, using clear, del, and indexing methods, as well as some general attributes about Python lists.

Python Get Index of Max Item in List Cover Image

Python: Get Index of Max Item in List

Learn how to use Python to get the index of the max item in a list, including when duplicates exist, using for loops, enumerate, and numpy.

Python Check if List Contains an Item Cover Image

Python: Check if List Contains an Item

Learn how to check if a Python list contains an element using different methods, including the in keyword, the count method, and more!

Python Reverse a List Cover Image

Python: Reverse a List (6 Easy 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.