American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Darin

December 10, 2024 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Continued the Library System project
  2. Reviewed how concepts such as keys/values in dictionaries work together with classes/objects

Homework:

  1. Continue on your Library System application in librarysystem.py, and complete the following:
  2. # Your homework is to finish the school system application methods for the teacher if you haven't done so already

     

  3. # MAIN HW - complete options 6 and 7
    
    
    elif selection == "6":
        # find book by author
        # steps to complete outside of elif:
        # 1. add the selection 6 into the print menu
        # 2. create a new dictionary using author as key
        # 3. pre-add items to new dict
        # 4. update add method to add to new dict
    
        # steps inside of elif:
        # 1. print out header like previous selections
        # 2. get input for the author
        # 3. check if input exists as part of the dictionary keys
        # 4. if it exists, get the book object from dictionary
        # 5. print out the information using get_info() method
        # 6. if it doesnt exist, print the usual "doesnt exist" message
    
        pass
    elif selection == "7":
        # list all books with ID greater than 3
        # change the ID values into integers from pre-adding items into the dictionary and adding new items to the dictionary
        # refer to selection 5.
        pass

Submit this files to the google drive when you are done!

Notes:

You can contact me at ddjapri@ayclogic if you have any questions!

Details

Date:
December 10, 2024
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights