We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16b959 commit c7f8f13Copy full SHA for c7f8f13
3-tier.py
@@ -38,8 +38,7 @@ def __init__(self):
38
def get_product_list(self):
39
print('PRODUCT LIST:')
40
for product in self.business_logic.product_list():
41
- #print(product)
42
- yield product
+ print(product)
43
print('')
44
45
def get_product_information(self, product):
@@ -66,6 +65,12 @@ def main():
66
65
main()
67
68
### OUTPUT ###
+# PRODUCT LIST:
69
+# (Fetching from Data Store)
70
+# cheese
71
+# eggs
72
+# milk
73
+#
74
# (Fetching from Data Store)
75
# PRODUCT INFORMATION:
76
# Name: Cheese, Price: 2.00, Quantity: 10
0 commit comments