We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c67c03a commit f1f2367Copy full SHA for f1f2367
book/book.tex
@@ -4578,7 +4578,7 @@ \section{Return values}
4578
\index{special value!None}
4579
4580
\begin{verbatim}
4581
->>> absolute_value(0)
+>>> print(absolute_value(0))
4582
None
4583
\end{verbatim}
4584
%
@@ -5122,10 +5122,10 @@ \section{Checking types}
5122
went wrong:
5123
5124
5125
->>> factorial('fred')
+>>> print(factorial('fred'))
5126
Factorial is only defined for integers.
5127
5128
->>> factorial(-2)
+>>> print(factorial(-2))
5129
Factorial is not defined for negative integers.
5130
5131
0 commit comments