Skip to content

Commit 516f4ba

Browse files
Commit changes in __init__ method
Co-authored-by: abhatia1205 <[email protected]>
1 parent 80aaf41 commit 516f4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2_intermediate/chapter12/solutions/food_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def burn(self):
5151

5252
class JunkFood(Food):
5353
def __init__(self, name, cals, protein, fat, sugar):
54-
Food.__init__(self, name, cals, protein, fat)
54+
super().__init__(name, cals, protein, fat)
5555
self.sugar = sugar
5656

5757

0 commit comments

Comments
 (0)