1. Învăţa
  2. /
  3. Courses
  4. /
  5. Introduction to Python

Connected

exercise

Subsetting lists of lists

A Python list can also contain other lists.

To subset lists of lists, you can use the same technique as before: square brackets. This would look something like this for a list, house:

house[2][0]

Instrucţiuni

100 XP
  • Subset the house list to get the float 9.5.