Accessing Scatter Plot attributes as list type and not tuple


I have been trying to access and append to the x and y attributes of a plotly.graph_objs.Scatter() object, but even though I initialize the attributes as lists (x = [], y = []), when I call type() on them, it returns tuple. This is blocking me from appending any data to the list, as I get a type error. Any help would be greatly appreciated.


best for #api:python