Completed Exercise 9-2 Three Restaurants

This commit is contained in:
cheeks 2025-02-28 00:06:34 +00:00
parent c72b7d015f
commit 77433ba852

View File

@ -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()