Spaces:
Sleeping
Sleeping
File size: 270 Bytes
f233663 | 1 2 3 4 5 6 7 8 9 10 11 12 | class Book:
def __init__(self, title, author):
self.title = title
self.author = author
def summary(self):
print(f"The book title is {self.title} and the author is {self.author}")
book1 = Book("AI for dummies", "Ryan Lemos")
book1.summary()
|