diff --git a/Behavioral/Callback/python/make_food.py b/Behavioral/Callback/python/make_food.py new file mode 100644 index 00000000..92be433e --- /dev/null +++ b/Behavioral/Callback/python/make_food.py @@ -0,0 +1,14 @@ +def cook(item): + print(f"Your {item} has been cooked enjoy!!") + +def make_food(item, callback): + print("Food is being made") + callback(item) + +def main(): + item = input("What do you want to eat?\n") + make_food(item, cook) + pass + +if __name__ == "__main__": + main()