How do you print to console all the elements indices? I can print out individual index but I would like to print out all elements in list.
my_list = [‘red’, ‘blue’, ‘purple’, ‘yellow’, ‘green’, ‘orange’].
Example #1: to print out individual index (print(my_list). The output would be ORANGE.
I would like to print all all indices at once.