

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 10
click for more info
Not enough gems
Cost: 6 gems
1: Classes
incomplete
2: Methods
incomplete
3: Methods Can Return
incomplete
4: Methods vs. Functions
incomplete
5: Constructors
incomplete
6: Constructor Quiz
incomplete
7: Multiple Objects
incomplete
8: Objects Quiz
incomplete
9: Archer Practice
incomplete
10: Class Variables vs. Instance Variables
incomplete
11: Classes Practice
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Wizards are having a hard time keeping track of all the books in their library. They need your help to create a library system that will allow them to add, remove, and search for books.
Magical incantations to find books have unfortunately not been invented yet.
You've been tasked with writing the code for the wizard library. Complete the Library and Book classes listed below.
When removing items, it is safer to create a new list of what you want to keep. Deleting items directly during a loop shifts the indices of the remaining items, causing the loop to skip data.
After a book is removed, it should no longer be returned in the search results.
.lower() method to convert a string to lowercase.