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