Let's implement a nested list! A nested list is a list that contains another list (i.e.: a list of lists). For example:
nested_list = [['blue', 'green'], ['red', 'black'], ['blue', 'white']] print len(nested_list) # prints 3 print nested_list # prints ['red', 'black'] print nested_list # prints red
To go through every element in a list, use a nested for loop.