From aa95c01fdff8301fd6f44b580a7c90a61e9bcad4 Mon Sep 17 00:00:00 2001 From: BrianKhai Date: Sat, 30 Apr 2022 21:18:07 -0700 Subject: [PATCH] Fix typo --- python/book.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/book.py b/python/book.py index 6df242a..4e01c73 100644 --- a/python/book.py +++ b/python/book.py @@ -7,7 +7,7 @@ def __init__(self, title, pages): def is_short(self): if self.pages < 100: - return true + return True #What happens when you pass object to print? def __str__(self): @@ -18,7 +18,7 @@ def __eq__(self, other): if(self.title == other.title and self.pages == other.pages): return True - #It's approriate to give something for __hash__ when you override __eq__ + #It's appropriate to give something for __hash__ when you override __eq__ # #This is the recommended way if mutable (like it is here): __hash__ = None