Skip to content

Commit 39bd2f9

Browse files
Update food_class.py
Co-authored-by: abhatia1205 <[email protected]>
1 parent dbd6cd6 commit 39bd2f9

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
@@ -57,7 +57,7 @@ def __init__(self, name, cals, protein, fat, sugar):
5757

5858
class Meal(Food):
5959
def __init__(self, name, cals, protein, fat, sodium):
60-
Food.__init__(self, name, cals, protein, fat)
60+
super().__init__(name, cals, protein, fat)
6161
self.sodium = sodium
6262

6363

0 commit comments

Comments
 (0)