Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 704b3f8

Browse files
committed
Merge pull request AllenDowney#17 from lbordoni/master
Add print function calls in 6.1 and 6.8
2 parents 1f66cac + f1f2367 commit 704b3f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/book.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,7 @@ \section{Return values}
45644564
\index{special value!None}
45654565

45664566
\begin{verbatim}
4567-
>>> absolute_value(0)
4567+
>>> print(absolute_value(0))
45684568
None
45694569
\end{verbatim}
45704570
%
@@ -5108,10 +5108,10 @@ \section{Checking types}
51085108
went wrong:
51095109

51105110
\begin{verbatim}
5111-
>>> factorial('fred')
5111+
>>> print(factorial('fred'))
51125112
Factorial is only defined for integers.
51135113
None
5114-
>>> factorial(-2)
5114+
>>> print(factorial(-2))
51155115
Factorial is not defined for negative integers.
51165116
None
51175117
\end{verbatim}

0 commit comments

Comments
 (0)