class banana :
    mylist = [1,2,3]
    def __init__(self,name,price):
        self.name=name
        self.price=price
        print(self.name,self.price)
    @classmethod
    def rival(cls,price):
        cls.price=price
        print(f"{cls.price-10}")

class apple (banana):
    def __init__ (self,name,price):
        banana.__init__(self,name,price)
one = banana("banana  $",25)
two = apple("apple  $",80)
apple.rival(90)
banana.rival(100)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: