Solution 1:
tuple()
creates a tuple with all the data instead of a list()
, and enclosing brackets []
create a new list with one element - early created tuple:
coord = [tuple(zip(coord_x, coord_y))] # stack into (x,y) coord
tuple()
creates a tuple with all the data instead of a list()
, and enclosing brackets []
create a new list with one element - early created tuple:
coord = [tuple(zip(coord_x, coord_y))] # stack into (x,y) coord