So I have an object:
class Particle(object):
def __init__(self, x, y, vx, vy, ax, ay):
self._x = int(x)
self._y = int(y)
self._vx = int(vx)
self._vy = int(vy)
self._ax = int(ax)
self._ay = int(ay)
# ...
I want to create an instance of that object from a list of numbers. How would I do that? Particle(list) doesn't work because it only inputs a list, not each value in the list. Thanks so much, I am sure there is a very obvious answer.