• + 0 comments

    Pretty easy challange *My code: *

    class MyBook(Book):
        def __init__(self, title, author, price):
            super().__init__(title, author)
            self.price = price
        def display(self):
            print("Title: " + self.title)
            print("Author: " + self.author)
            print("Price: " + str(self.price))