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 9520KB
stdin
Standard input is empty
stdout
Standard output is empty