Unit 5 Flashcards
1
Q
( )
representation bracket
A
tuple
x = (apple, banana, pear)
2
Q
[ ]
representation bracket
A
list
x = [apple, banana, pear]
3
Q
{ }
representation bracket
A
dictionary and sets
x = {apple, banana, pear}
4
Q
characteristics of tuples
duplicates, change, order
A
- allows dupes
- immutable
- ordered
5
Q
characteristics of lists
duplicates, change, order
A
- allows duplicates
- mutable
- ordered
- list( )
6
Q
characteristics of dictionary
duplicates, change, order
A
- no dupes
- mutable
- ordered
- dict( { } )
7
Q
characteristics of sets
duplicates, change, order
A
- no dupes
- mutable
- unordered
- set( )
8
Q
A