220,985 views
42 votes
42 votes
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 E[1][0]?

User Rjmcb
by
2.8k points

1 Answer

18 votes
18 votes

Answer:

35

Step-by-step explanation:

We will be going inside B array, because he was in second place in array E,and will be the first element of array B, so it's 35

E can be understanded as:

E=[[21, 'dog', 'red'],[35, 'cat', 'blue'],[12, 'fish', 'green']], so, you can see array E as array of arrays or so-called two-dimensional array

User Mahesh Shitole
by
2.8k points