Book Class with Independent Objects

Implement the Book class from the lesson: a constructor taking title, author, isbn (and setting is_available = True), a borrow() method, and a return_book() method - matching the lesson's own worked example exactly.

Read two books' details, create both, then call .borrow() on the first one twice, printing the results and each book's is_available state in between - to prove the two objects' state stays genuinely independent.

main.py
Loading editor…

Console

Run your code to see output here.