Nesting Lists

Want to learn more? I recommend these Python books: Python for Data Analysis, Python Data Science Handbook, and Introduction to Machine Learning with Python.

# Create a list of three nested lists, each with three items
state_regions = [['California', 'Oregon', 'Washington'],
        ['Maine','Vermont','New York']]
# View the list
[['California', 'Oregon', 'Washington'],
 ['Texas', 'Georgia', 'Alabama'],
 ['Maine', 'Vermont', 'New York']]
# Print the second list's third item