🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

कौन सी सूची अनुक्रमणिका उपरोक्त सूची से ‘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:

 
colors[0] # This will return 'red'

Thus, the correct index is 0.

Latest Updates