Question: python IndexError: list index out of range i want to check if 6%3==0 until 36%12==0 but it is out ofrange 1st = [3, 6, 12,

1st = [3, 6, 12, 36] for i in range(len(1st)): print (1st

python

IndexError: list index out of range

i want to check if 6%3==0 until 36%12==0 but it is out ofrange

1st = [3, 6, 12, 36] for i in range(len(1st)): print (1st [i+1]%lst[i])

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 Programming Questions!