Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Discover in-depth answers to your questions from a wide network of experts on our user-friendly Q&A platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

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


Sagot :

Answer:

dog

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.