Mar-29-2019, 03:22 PM
There's lots of errors in the formatting of the code you have posted (spaces where they shouldn't be, spaces missing)
There is also undefined variables.
When asking for help please post a minimal code sample that is able to be run.
You could create a variable before the loop
Add
Remove the
After the loop add
There is also undefined variables.
When asking for help please post a minimal code sample that is able to be run.
You could create a variable before the loop
book_found = False
Add
book_found = True
to the end of the if statementRemove the
elifstatement
After the loop add
if not book_found: print ("no books in that interval")