Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
327 B
1
Indexable
Never
book_name = input()
book_count = 0

while book_name != 'No More Books':

    new_book = input()

    if new_book == book_name:

        print(f'You checked {book_count} books and found it.')
        break

    book_count += 1

else:
    print(f'The book you search is not here!\nYou checked {book_count} books.')
Leave a Comment