Completed Exercise 9-2 Three Restaurants
This commit is contained in:
parent
c72b7d015f
commit
77433ba852
17
Chapter_09/9-02_three_restaurants.py
Normal file
17
Chapter_09/9-02_three_restaurants.py
Normal 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()
|
||||
Loading…
x
Reference in New Issue
Block a user