What is the output of the following code? class Library: …
What is the output of the following code? class Library: max_books = 5 def __init__(self, name, books_borrowed): self.name = name self.books_borrowed = books_borrowed def can_borrow(self): return self.books_borrowed < self.max_bookscity_library = Library("City Library", 3)town_library = Library("Town Library", 4)Library.max_books = 7city_library.max_books = 6print(city_library.max_books, town_library.max_books)
Read Details