Semaine 4, jour 4, soir
This commit is contained in:
@@ -74,7 +74,7 @@ class Library:
|
||||
"""Cherche un livre par lettre de départ"""
|
||||
results = []
|
||||
for book in self.books:
|
||||
if book.title.lower().startswith(letter):
|
||||
if book.title.lower().startswith(letter.lower()):
|
||||
results.append(book)
|
||||
return results if len(results) > 0 else "Pas de résultat."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user