Explanation

hey in this code in line 5, what give the mining of l1 to lst2?
if the code only say that l1 is in range(len(lst1)),
why dose it do the same for lst2?

l1 holds the index. We can use this index to get values from both lists:

lst1[0] == lst2[0]
lst1[1] == lst2[1]
// and so forth

so we use a loop :slight_smile:

1 Like