Python Data Structures


Not CompletedBuild a Histogram in Python with No 3rd Party Libraries

I want to end our section on Python dictionaries with a fun exercise. And so what we're going to do is build a histogram. If you're not familiar with what a histogram is it's a type of chart used in statistics and machine learning that allows you to see patterns and basic types of trends with data.

Not CompletedIntroduction to Python Tuples

So far in this module on data structures in Python, we've covered lists and we've covered dictionaries and in the next section, we are going to go through the tuple data structure.

Not CompletedHow to Add Elements to a Tuple by Leveraging Re-Assignment

In the last guide we walk through how to build a tuple and also to see the differences between working with tuples and working with Python lists and if you remember the key difference is that a tuple is immutable which means that you're not able to change it whereas a list is mutable which means that you can add elements take elements away and perform any of those kinds of tasks on the fly.

Not CompletedWorking with Lists Nested in Tuples

In the same way, that python list can contain nested Data Structures tuples can perform the same task.

Not CompletedGuide to Slices in Python Tuples

So far in the section on Python tuples we've analyzed how to create tuples and one of the most important components that we walk through is the difference between a tuple and a Python list and we're going to extend that knowledge in this guide as we talk about how we can slice tuples.

Not CompletedThree Ways to Remove Elements from a Python Tuple

In this guide on Python tuples, we're going to see how we can remove elements from this type of data structure. Now I'm going to add in a few caveats before we walk through the syntax for performing that task.

Not CompletedHow to Use a Tuple as a Dictionary Key in Python

In extending our knowledge on Python tuples in this guide we're going to walk through a very unique way that you can use tuples and you're going to see this in a number of various code libraries and so I want you to be familiar with it.

Not CompletedGuide to Python's Zip Function

In this lesson, we're going to utilize a powerful function in the core Python library called the zip function and what this is going to allow us to do is actually merge our lists or merge multiple lists into a set of tuples.

Not CompletedIntroduction to the Python Set Data Structure

So far in this section of the course on Python data structures we've covered lists we've covered dictionaries and we've covered tuples and in this last section we are going to cover one more data structure and that is the set.

Not CompletedVarious Methods for Merging Python Sets

In the last lesson, we walked through an introduction to the set data structure in python and we saw how we could create a set how we could query for elements inside of it. And we saw one of the key characteristics of a set which is that all of the elements in a set are guaranteed to be unique.

Quizzes


Python Data Structures
    Unsupported Browser

    devCamp does not support ancient browsers.
    Install a modern version for best experience.