Semaine 4, jour 4, soir

This commit is contained in:
gauvainboiche
2026-01-15 16:52:26 +01:00
parent 4c9c3b29e8
commit 54bb4d7628
17 changed files with 620 additions and 24 deletions

View File

@@ -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."