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