<filename>WhileLoop/OldBooks2.py
searched_book = input()
next_book = input()

book_count = 0
isFound = False

while next_book != "No More Books":
    if next_book == searched_book:
        isFound = True
        break
    book_count += 1
    next_book = input()

if isFound:
    print(f"You checked {book_count} books and found it.")
else:
    print(f"The book you search is not here!")
    print(f"You checked {book_count} books.")
<filename>WhileLoop/OldBooks2.py
searched_book = input()
next_book = input()

book_count = 0
isFound = False

while next_book != "No More Books":
    if next_book == searched_book:
        isFound = True
        break
    book_count += 1
    next_book = input()

if isFound:
    print(f"You checked {book_count} books and found it.")
else:
    print(f"The book you search is not here!")
    print(f"You checked {book_count} books.")