Unit 5 Flashcards

1
Q

( )

representation bracket

A

tuple

x = (apple, banana, pear)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

[ ]

representation bracket

A

list

x = [apple, banana, pear]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

{ }

representation bracket

A

dictionary and sets

x = {apple, banana, pear}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

characteristics of tuples

duplicates, change, order

A
  • allows dupes
  • immutable
  • ordered
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

characteristics of lists

duplicates, change, order

A
  • allows duplicates
  • mutable
  • ordered
  • list( )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

characteristics of dictionary

duplicates, change, order

A
  • no dupes
  • mutable
  • ordered
  • dict( { } )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

characteristics of sets

duplicates, change, order

A
  • no dupes
  • mutable
  • unordered
  • set( )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly