How to create a Python class -
i'm working on project , didn't example of needed earlier thread closed. need doing creating class in python defines penny object, later on can go in , change nickel, dime, quarter, etc, have basic idea of how create want make sure i'm on right track or if i've vered off. in need create classes , figure out how add them weight, , height. in beginning asked enter number go class , enter how many of objects have , add number. this gives idea of i've started put penny class that's data need have class want make sure set correctly. how go importing new class quarter() you want coin class penny, nickel, dime, quarter inherit from. should have 1 init method class coin(): def __init__(self,weight,height): self.weight = weight self.height = height class penny(coin): def __init__(self): coin.__init__(self,2.5,1.52)