class Particle:

    def __init__(self, mass, position, velocity, force):
        self.mass = mass
self.position = position
self.velocity = velocity
self.force = force
particle = Particle(1, 2, 3, 4)
print(particle.mass)
Custom data structures in Python