class Recipe:
"""
This class houses recipes for use by the Omelette class
"""
def __init__(self):
self.set_default_recipes()
[B]return[/B]
def set_default_recipes(self):
self.recipes = {"cheese" : {"eggs":2, "milk":1, "cheese":1},
"mushroom" : {"eggs":2, "milk":1, "cheese":1, "mushroom":2},
"onion" : {"eggs":2, "milk":1, "cheese":1, "onion":1}}
I'm trying to follow my books code, but I don't understand what's the point of having a return statement in the constructor method.


Sign In
Create Account


Back to top









