Question: Python my _ list = [ 3 , 2 , 7 , 8 , 6 , 9 ] count = 0 for if my _

Python
my_list =[3,2,7,8,6,9]
count =0
for
if my_list [i]> my_list i-1 :
count = count +1
print(count)
The following program prints the number of integers in my_list that are greater than the previous integer in the list. Which choice fills in the blank to complete the for loop?
i in range , len(my_list))
i in range , len (my_list)+1)
i in range(1, len(my_list))
i in range(1, len(my_list)+1)
 Python my_list =[3,2,7,8,6,9] count =0 for if my_list [i]> my_list i-1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!