108k views
5 votes
Given the following line of code, what is the value of the expression nums. index(20)? nums = [30, 80, 40, 80, 20, 20, 70, 30, 80] 2 3 3 O 5

1 Answer

2 votes

Answer:

The value of the expression nums.index(20) is 4, as the 20 is at the fourth index in the list.

Step-by-step explanation:

User Vadim Peretokin
by
7.3k points