
- This event has passed.
9 AM – Python OOP – Indo – Gamas
September 23, 2023 @ 9:00 am - 10:00 am
Today We Did
- We reviewed how to loop through each element inside a dictionary.
- We enhanced sep_9_robux_shopping_cart.py so it will print the selection menu according to elements inside item_prices and item_names dictionaries. No need to have static menu variable anymore.
- We started phone_book_system.py almost done.
Homework
- Add code inside phone_book_system.py so when user enter “2. Find a phone number” and user enter a name that is not in our system, the system will say “<name> is not in our system”.
What do you want to do 1. Add a phone number 2. Find a phone number 3. List all phone numbers Enter your selection (enter 'exit' to stop): 1 Enter a name: Gamas Please enter your phone number: 626-532-7844 What do you want to do 1. Add a phone number 2. Find a phone number 3. List all phone numbers Enter your selection (enter 'exit' to stop): 2 Enter a name: Russel Russel does not exists in our system. What do you want to do 1. Add a phone number 2. Find a phone number 3. List all phone numbers Enter your selection (enter 'exit' to stop): 2 Enter a name: Gamas Gamas phone nuber is 626-532-7844
- Create a new python file “sept_23_class_hw1.py” and copy codes from page 158 to 161.