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