कौन सी सूची अनुक्रमणिका उपरोक्त सूची से ‘red’ मान का चयन करेगी
Which list index would select the value 'red' from the above list
colors = ["red", "green", "burnt sienna", "blue"] A
“red”
B
0
C
1
D
-4
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.
Correct Answer: B) 0