STATS MIDTERM

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:24 PM on 5/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

in which python data structures can you access elements via index?

lists and tuples

2
New cards

in which python data structures can you access elements via keys?

dictionaries

3
New cards

how do you access nested lists/dictionaries?

two []

4
New cards

which python data structures can be concatenated using +?

lists and tuples

5
New cards

can you concatenate a set?

yes, using .union()

6
New cards

what can you nest in a list?

list, set, tuple, dictionary

7
New cards

what can you nest in a tuple?

list, set, tuple, dictionary

8
New cards

what can you nest in a set?

tuple

9
New cards

what can you nest in a dictionary key?

tuple

10
New cards

what can you nest in a dictionary value?

list, tuple, set, dictionary

11
New cards

how to add elem to list?

.append(elem), .insert(ind, elem)

12
New cards

how to add elem to tuple?

immutable so N/A

13
New cards

how to add elem to set?

.add(one elem), .update(multiple elem)

14
New cards

how to add elem to dictionary

d[key] = val, .update({key; val})

15
New cards

how to remove elem from list?

.pop(ind), .remove(elem)

16
New cards

how to remove elem from set?

.discard(elem)

17
New cards

how to remove elem from tuple?

immutable so N/A

18
New cards

how to remove elem from dictionary?

.pop(“key”)