146k views
3 votes
PLEASE HELP

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[0][1]?


21

35

cat

dog

2 Answers

11 votes

Answer:

dog

Step-by-step explanation:

i type the code in to python

User OrangeTux
by
3.8k points
7 votes

Answer:

dog

Step-by-step explanation:

The python program has four lists, A, B, C, and E which is a list of the first three lists. Lists are unordered indexed data structures, it is accessed by an index starting from 0 to n (which is the length of the list minus one).

The E list is a list of lists with three list items starting from index zero to two. E[0][1] is used to access the item "dog" in the first list item of the E list.

User Iefpw
by
3.7k points