From the course: Python Data Structures: Dictionaries

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Dictionary vs. lists

Dictionary vs. lists - Python Tutorial

From the course: Python Data Structures: Dictionaries

Start my 1-month free trial

Dictionary vs. lists

- [Instructor] Welcome to Chapter Three's data structure section. In this video and next, we will briefly touch the various collection data types that are available in Python and compare the syntax of each one with dictionaries. These data types are called collections because they group multiple values together. In this video, we even first compare a dictionary against a list. In the previous videos we talked about a dictionary of lists. In this case, you're actually comparing the two data structures. A list is a collection which is ordered and changeable, allows duplicate members. A dictionary is a collection which is unordered, changeable and indexed, no duplicate members. When choosing a collection type, it is useful to understand the properties of that type. Choosing the right type for particular dataset could mean retention of meaning, and it could mean an increase in efficiency or security. So notice this…

Contents