Skip to content

Commit aa95c01

Browse files
authored
Fix typo
1 parent fbadf22 commit aa95c01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎python/book.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self, title, pages):
77

88
def is_short(self):
99
if self.pages < 100:
10-
return true
10+
return True
1111

1212
#What happens when you pass object to print?
1313
def __str__(self):
@@ -18,7 +18,7 @@ def __eq__(self, other):
1818
if(self.title == other.title and self.pages == other.pages):
1919
return True
2020

21-
#It's approriate to give something for __hash__ when you override __eq__
21+
#It's appropriate to give something for __hash__ when you override __eq__
2222
# #This is the recommended way if mutable (like it is here):
2323
__hash__ = None
2424

0 commit comments

Comments
 (0)