Check your understanding of the primer: lists of dataclasses, nested dataclasses, nested lists, and heavily nested data.
Which of the following is an advantage of nesting dataclasses inside of lists?
Select one answer, then check.
How does one index a specific element in a nested list?
Select one answer, then check.
numbers_2d[1][2].in tests membership (whether a value appears in the list); it does not retrieve an element by position.What is the main advantage of heavily nested data?
Select one answer, then check.