Python - Constructors and Object Initialization
What will be the output of this code?
class Book:
def __init__(self, title, pages=100):
self.title = title
self.pages = pages
book1 = Book('Python 101', 250)
book2 = Book('Learn AI')
print(book1.pages, book2.pages)