learn Python By Example – Nesting Lists

Nesting Lists /* Create a list of three nested lists, each with three items */ state_regions = [[‘California’, ‘Oregon’, ‘Washington’], [‘Texas’,’Georgia’,’Alabama’], [‘Maine’,’Vermont’,’New York’]] /* View the list */ state_regions [[‘California’, ‘Oregon’, ‘Washington’], [‘Texas’, ‘Georgia’, ‘Alabama’], [‘Maine’, ‘Vermont’, ‘New York’]] /* Print the second list’s third item */ state_regions[1][2] ‘Alabama’   Python Example for Beginners Special … Continue reading learn Python By Example – Nesting Lists