From 77433ba852b8cab47a1af95cbf309b79f388cf56 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Fri, 28 Feb 2025 00:06:34 +0000 Subject: [PATCH] Completed Exercise 9-2 Three Restaurants --- Chapter_09/9-02_three_restaurants.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Chapter_09/9-02_three_restaurants.py diff --git a/Chapter_09/9-02_three_restaurants.py b/Chapter_09/9-02_three_restaurants.py new file mode 100644 index 0000000..2feb5ec --- /dev/null +++ b/Chapter_09/9-02_three_restaurants.py @@ -0,0 +1,17 @@ +# Exercise 9-3 Three Restaurants +# Learning Objective: Create 3 instances of the class previously created then call a method for each. + +My_Class = __import__('9-01_restaurant') + + +my_restaurant = My_Class.Restaurant("Pete's Perturbed Petunias", "Somalian Greek Fusion") + +second_restaurant = My_Class.Restaurant("Steve's Summer Salmon House", "Cajun Seafood") + +third_restaurant = My_Class.Restaurant("Louis's Lazy Lumpy Potatoes", "American Comfort Food") + +my_restaurant.describe_restaurant() + +second_restaurant.describe_restaurant() + +third_restaurant.describe_restaurant() \ No newline at end of file