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