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 - Python Tutorial
From the course: Python Data Structures: Dictionaries
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.