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 e844a55 commit 6b92015Copy full SHA for 6b92015
3-tier.py
@@ -44,11 +44,13 @@ def get_product_information(self, product):
44
print('That product "{0}" does not exist in the records'.format(product))
45
46
47
-if __name__ == '__main__':
48
-
+def main():
49
ui = Ui()
50
ui.get_product_list()
51
ui.get_product_information('cheese')
52
ui.get_product_information('eggs')
53
ui.get_product_information('milk')
54
ui.get_product_information('arepas')
+
55
+if __name__ == '__main__':
56
+ main()
0 commit comments