American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

9 AM – Python OOP – Indo – Gamas

September 23, 2023 @ 9:00 am - 10:00 am

Today We Did
  1. We reviewed how to loop through each element inside a dictionary.
  2. 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.
  3. We started phone_book_system.py almost done.
Homework
  1. 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”.
    1. 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
  2. Create a new python file “sept_23_class_hw1.py” and copy codes from page 158 to 161.

Details

Date:
September 23, 2023
Time:
9:00 am - 10:00 am
Event Categories:
,
Verified by MonsterInsights