Skip to content

Commit f1f2367

Browse files
committed
Add print function calls in 6.1 and 6.8
1 parent c67c03a commit f1f2367

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
@@ -4578,7 +4578,7 @@ \section{Return values}
45784578
\index{special value!None}
45794579

45804580
\begin{verbatim}
4581-
>>> absolute_value(0)
4581+
>>> print(absolute_value(0))
45824582
None
45834583
\end{verbatim}
45844584
%
@@ -5122,10 +5122,10 @@ \section{Checking types}
51225122
went wrong:
51235123

51245124
\begin{verbatim}
5125-
>>> factorial('fred')
5125+
>>> print(factorial('fred'))
51265126
Factorial is only defined for integers.
51275127
None
5128-
>>> factorial(-2)
5128+
>>> print(factorial(-2))
51295129
Factorial is not defined for negative integers.
51305130
None
51315131
\end{verbatim}

0 commit comments

Comments
(0)