| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,8 +38,7 @@ def __init__(self): | |||
| 38 | 38 | def get_product_list(self): | |
| 39 | 39 | print('PRODUCT LIST:') | |
| 40 | 40 | for product in self.business_logic.product_list(): | |
| 41 | - #print(product) | ||
| 42 | - yield product | ||
| 41 | + print(product) | ||
| 43 | 42 | print('') | |
| 44 | 43 | ||
| 45 | 44 | def get_product_information(self, product): | |
@@ -66,6 +65,12 @@ def main(): | |||
| 66 | 65 | main() | |
| 67 | 66 | ||
| 68 | 67 | ### OUTPUT ### | |
| 68 | + # PRODUCT LIST: | ||
| 69 | + # (Fetching from Data Store) | ||
| 70 | + # cheese | ||
| 71 | + # eggs | ||
| 72 | + # milk | ||
| 73 | + # | ||
| 69 | 74 | # (Fetching from Data Store) | |
| 70 | 75 | # PRODUCT INFORMATION: | |
| 71 | 76 | # Name: Cheese, Price: 2.00, Quantity: 10 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments