Nested Lists and Dictionaries.
Nested Lists in Python
A list as an item of another list
A nested list is a list that contains other lists as its elements.
Code:
# A list of lists
nested_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(nested_list)
Output:
[[1, 2, 3], [4, 5, 6], [7,...
nikhilkandi.hashnode.dev6 min read