From fc464cd3b6e7c35d7bbc537ac5cc3ffa068c1eac Mon Sep 17 00:00:00 2001 From: LavanyaS17 <56471230+LavanyaS17@users.noreply.github.com> Date: Wed, 23 Oct 2019 13:36:27 +0530 Subject: [PATCH] Update Book.py --- Book.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)