The nested lists do not even need to be of the same size! This is not something we can find in many other languages.
Here’s an example of lists inside another list:
1234
world_cup_winners = [[2006, "Italy"], [2010, "Spain"],
[2014, "Germany"], [2018, "France"]]
print(world_cup_winners)
Run
Save
Reset
The nested lists do not even need to be of the same size! This is not something we can find in many other languages.