Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- book_name = input()
- book_count = 0
- is_book_found = False
- current_book = input()
- while current_book != 'No More Books':
- if current_book == book_name:
- is_book_found = True
- print(f"You checked {book_count} books and found it.")
- break
- book_count += 1
- current_book = input()
- if not is_book_found:
- print("The book you search is not here!")
- print(f"You checked {book_count} books.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement