American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4:30pm – Python OOP – Roland

April 11 @ 4:30 pm - 5:30 pm

Today We Did

  1. Reviewed Dictionaries and did Dictionary Practice
    1. How to add/insert into dictionary
    2. Getting items from dictionary
    3. dictionary.keys(), dictionary.values(), dictionary.items()
  2. Started Supermarket Project
    1. GroceryItem Class
    2. Created self.shopping_cart and added GroceryItems to the self.menu
    3. Main body of Application Loop finished

Homework

Implement the print_menu(self) function

This function should print out every item from our self.menu dictionary in the following manner

“Choice #{KEY} – {NAME} – ${PRICE}” for each item in the menu dictionary

Make sure to use a for loop! (check out the hint in the google drive files/notes if you need help)

If you have any questions, feel free to email me at rolandyang@ayclogic.com

Details

Date:
April 11
Time:
4:30 pm - 5:30 pm
Verified by MonsterInsights