© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. IndenPython Challengeshttps://doi.org/10.1007/978-1-4842-7398-2_5

5. Basic Data Structures: Lists, Sets, and Dictionaries

Michael Inden1  
(1)
Zurich, Switzerland
 

In Python, lists, sets, and key-value mappings (dictionaries) are provided directly in the language as container classes . They manage objects of other classes (also potentially of different data types).

5.1 Introduction

In the following, I first describe sequential data types and especially their operations. After that, you briefly look at lists, sets, and dictionaries.

5.1.1 Sequential Data Types

In Python, sequential data types exist as the basis for various data containers, such as lists, tuples, ...

Get Python Challenges: 100 Proven Programming Tasks Designed to Prepare You for Anything now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.