We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f66cac + f1f2367 commit 704b3f8Copy full SHA for 704b3f8
book/book.tex
@@ -4564,7 +4564,7 @@ \section{Return values}
4564
\index{special value!None}
4565
4566
\begin{verbatim}
4567
->>> absolute_value(0)
+>>> print(absolute_value(0))
4568
None
4569
\end{verbatim}
4570
%
@@ -5108,10 +5108,10 @@ \section{Checking types}
5108
went wrong:
5109
5110
5111
->>> factorial('fred')
+>>> print(factorial('fred'))
5112
Factorial is only defined for integers.
5113
5114
->>> factorial(-2)
+>>> print(factorial(-2))
5115
Factorial is not defined for negative integers.
5116
5117
0 commit comments