Abstract
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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
All elements contained in either A or B, but not both sets.
- 2.
This functionality can be found for lists too, but there slicing is often the better choice to copy data.
- 3.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Inden, M. (2022). Basic Data Structures: Lists, Sets, and Dictionaries. In: Python Challenges. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7398-2_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-7398-2_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7397-5
Online ISBN: 978-1-4842-7398-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)