Skip to content

Commit

Permalink
Merge pull request AllenDowney#77 from jorgelespinoza/patch-19
Browse files Browse the repository at this point in the history
Adjust some comments to PEP8 standard
  • Loading branch information
AllenDowney authored Nov 22, 2020
2 parents 7241e11 + 0966379 commit 81ff248
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14245,7 +14245,7 @@ \section{Printing the deck}
Here is a \verb"__str__" method for {\tt Deck}:
\begin{verbatim}
#inside class Deck:
# inside class Deck:
def __str__(self):
res = []
Expand Down Expand Up @@ -14290,7 +14290,7 @@ \section{Add, remove, shuffle and sort}
\index{method!pop}
\begin{verbatim}
#inside class Deck:
# inside class Deck:
def pop_card(self):
return self.cards.pop()
Expand All @@ -14304,7 +14304,7 @@ \section{Add, remove, shuffle and sort}
To add a card, we can use the list method {\tt append}:
\begin{verbatim}
#inside class Deck:
# inside class Deck:
def add_card(self, card):
self.cards.append(card)
Expand Down Expand Up @@ -14430,7 +14430,7 @@ \section{Inheritance}
\index{encapsulation}
\begin{verbatim}
#inside class Deck:
# inside class Deck:
def move_cards(self, hand, num):
for i in range(num):
Expand Down

0 comments on commit 81ff248

Please sign in to comment.