Mind map
Data Structures
Map content
Data Structures
Lists [...,...,...]
- Ordered, changeable, and allows duplicates
- Elements can have different data types
- You can add and remove elements
- List items are indexed, the first item has index [0], the second item has index [1] etc.
- use the len() function
- List items are indexed, the first item has index [0], the second item has index [1] etc.
- You can add and remove elements
- Elements can have different data types
- Ordered, changeable, and allows duplicates
Tuples (...,...,...)
- Used to store multiple items in a single variable
- Ordered, unchangeable, allow duplicates
- You cannot add or remove elements
- Tuple items are indexed, the first item has index [0], the second item has index [1] etc.
- use the len() function
- Tuple items are indexed, the first item has index [0], the second item has index [1] etc.
- You cannot add or remove elements
- Ordered, unchangeable, allow duplicates
- Used to store multiple items in a single variable
Sets {...,...,...}
- Unordered, unchangeable, reject duplicates
- Elements can have different data types
- You can add and merge elements
- Unindexed
- use the len() function
- Unindexed
- You can add and merge elements
- Elements can have different data types
- Unordered, unchangeable, reject duplicates
Dictionaries
- Store data in key:value format
- Describe items
- Can be any data type
- ordered, changeable, and does not allow duplicates
- use the len() function
- ordered, changeable, and does not allow duplicates
- Can be any data type
- Describe items
- Store data in key:value format
Information
- Description
- Mind Map on Data Structures, created by Sydney Darden on 09/09/2021.
- Created by
- Sydney Darden
- Views
- 0
- Rating