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