python crete a nested list with index code example
Example: python nested list
# example of a nested list
my_list = [[1, 2], ["one", "two"]]
# accessing a nested list
my_list[1][0] # outputs "one"
# example of a nested list
my_list = [[1, 2], ["one", "two"]]
# accessing a nested list
my_list[1][0] # outputs "one"