0% found this document useful (0 votes)
3 views4 pages

Data Structures in Programming Basics

The document discusses data structures and their construction and descriptions. It lists common Python data structures like lists, tuples, sets, and dictionaries, providing how they are constructed and that lists are sortable and resizable while tuples are immutable. It also includes an example of sets containing numbers and a string of letters.

Uploaded by

耿立
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Data Structures in Programming Basics

The document discusses data structures and their construction and descriptions. It lists common Python data structures like lists, tuples, sets, and dictionaries, providing how they are constructed and that lists are sortable and resizable while tuples are immutable. It also includes an example of sets containing numbers and a string of letters.

Uploaded by

耿立
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like