QUESTION IMAGE
Question
this is your code.
>> a = 21, dog,red
>> b = 35, cat, blue
>> c = 12, fish, green
>> e = a, b, c
what is the value of e21
o fish
o green
o cat
o blue
Step1: Identify E
E is a list containing sub - lists A, B, C.
Step2: Locate E[2]
In Python, list indices start from 0. So E[2] refers to the third sub - list in E, which is C = [12, 'fish', 'green'].
Step3: Locate E[2][1]
In the list C, the index 1 refers to the second element. So E[2][1] is 'fish'.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
fish