Generation

class from descriptionMon, 12 Dec 2022

create a particle class with mass, charge, fragment particles, nuclear forces

class Particle(object): def __init__(self, mass, charge, fragments, nuclear_forces): self.mass = mass self.charge = charge self.fragments = fragments self.nuclear_forces = nuclear_forces

Questions about programming?Chat with your personal AI assistant