Learning To Program - Abstractions
Data Structures
K. Scott Allen
[Link]
apples
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
S1 { 1, 2, 3 }
S2 { 2, 3, 4 }
Data Structures
Name
Construction
Description
List
[ ] or list()
A sortable, resizable collection
of items
Tuple
( ) or tuple()
An immutable collection
Set
{ } or set()
A collection of unique items
Dictionar
y
{ } or dict()
A collection of name value
pairs