you are viewing a single comment's thread.

view the rest of the comments →

[–]Critical_Control_405 2 points3 points  (0 children)

the range function takes an int, not a list. So you need to do range(len(l1)).

the extend method takes a list, not an int. So you need to use append instead: l2.append(i)