American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5:00 PM – Python Object Oriented Programming – Shawn

June 23, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Reviewed and finished SchoolSystem
Homework
  1. Modify the code we wrote in class with the following instructions: https://drive.google.com/drive/folders/1Gy-hd4QHOnQKmmT_lL164JMiWypBBbv8
  2. Create find book by ID
    1. Create a new attribute: a dictionary named id_to_book
    2. In the add_book() method, also add the book to the id_to_book dictionary
    3. Create a method find_book_by_id — this is going to look exactly like find_book_by_name, but with the id_to_book dictionary instead of book_dictionary
  3. Create list all old books
    1. Go through the dictionary values. If the book was written before 2000, print it out. Otherwise, don’t print anything out.

Feel free to let me know if I have any questions — reach me at szhuang@ayclogic.com.

Details

Date:
June 23, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights