15.6k views
19 votes
Question 3

Consider the following code:
h = [8, 4, 5, 1, 1, 6, 7, 9, 3, 3, 9, 3]
print (h[1])
What is output?
8
4
5
1

User Hedge
by
7.6k points

1 Answer

11 votes

Answer:

The output would be 4.

Step-by-step explanation:

This seems to be python, so it has 0 based indexing. The index 1 would be the second number in the list, and since the second number in the list is 4, the output would be 4.

User Nrusingha
by
7.5k points

No related questions found