fork download
  1. class Fruits:
  2. def __init__(self, color, taste):
  3. self.color = color
  4. self.taste = taste
  5.  
  6. class Mango(Fruits):
  7. def __init__(self, color, taste, variety):
  8. super().__init__(color, taste)
  9. self.variety = variety
  10.  
Success #stdin #stdout 0.03s 9524KB
stdin
class Fruits:
    def __init__(self, color, taste):
        self.color = color
        self.taste = taste

class Mango(Fruits):
    def __init__(self, color, taste, variety):
        super().__init__(color, taste)
        self.variety = variety
stdout
Standard output is empty