कौन सी सूची अनुक्रमणिका उपरोक्त सूची से ‘red’ मान का चयन करेगी
Which list index would select the value 'red' from the above list
colors = ["red", "green", "burnt sienna", "blue"]
A)
B)
C)
D)
Explanation:
To select the value 'red'
from the list colors = ["red", "green", "burnt sienna", "blue"]
, you would use the index 0.
In Python, list indexing starts at 0, so:
Thus, the correct index is 0.