diff --git a/Book.py b/Book.py index ba61cb0..964a35b 100644 --- a/Book.py +++ b/Book.py @@ -1,5 +1,5 @@ #this is an OOP example -class book(): +class Book(): def __init__(self,author,title,pages): self.title = title self.author = author @@ -8,6 +8,6 @@ def __str__(self): return f"{self.title} by {self.author} in {self.pages} pages" def __len__(self): return self.pages -myBook = book("author","title",50) +myBook = Book("author","title",50) len(myBook) print(myBook)