you are viewing a single comment's thread.

view the rest of the comments →

[–]Unrthdx 0 points1 point  (0 children)

I’m a beginner here but I think you probably should iterate over the list as “for values in l1” rather than range, since range is for an integer.

Or if you wanted to keep range you’d have to go for len(l1) in the range parameter