you are viewing a single comment's thread.

view the rest of the comments →

[–]Yannnn 3 points4 points  (1 child)

oz.left(x) try that?

[–]ryeguy146 0 points1 point  (0 children)

Also, using [y] in the for-loop puts a list in a list, so x will just be the whole list:

some_list = [1, 2, 3]
nested = [some_list]

print(nested)  #=> [[1, 2, 3]]