This is a code for my school pls help
class product:
deliveryCharge=50
def __init__(self,nam="Teddy Bear", prc=500):
self.name=nam
self.price=prc
def get_name(self):
return self.name
def get_price(self):
return self.price + product.deliveryCharge
def __str__(self):
return "The {} will cost you Rs.{}.".format(self.get_name(),self.get_price())
class gift(product):
def __init__(self,nam,prc,wrpchrge=100):
super().__init__(nam,prc)
self.wrappingcharge=wrpchrge
def get_price(self):
return self.price + product.deliveryCharge+gift.wrappingcharge
x1=product("yoyo",29)
print("I am buying a {} and it costs me {}".format(x1.get_name,x1.get_price))
m1=gift("yoyo",29)
print("I am buying a {} and it costs me {}".format(m1.get_name,m1.get_price))
print(product.get_name)
The error I am getting:

If anyone knows how to fix this,