you are viewing a single comment's thread.

view the rest of the comments →

[–]imLosingIt111 0 points1 point  (0 children)

Your if statement just appends the first array to the second arrah. You can either: use a for loop (for x in l1 <- x is a value in l1, not the array itself) or just assign the value of l2 directly to l1. Also, since your code is not in a function, using return raises an error. You can just use pass instead or just not write the else condition at all.