diff options
Diffstat (limited to 'Doc/tut')
-rw-r--r-- | Doc/tut/tut.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index e16fc46..f975436 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -1171,7 +1171,7 @@ the arguments passed to it on subsequent calls: \begin{verbatim} def f(a, l = []): l.append(a) - return a + return l print f(1) print f(2) print f(3) @@ -1193,7 +1193,7 @@ def f(a, l = None): if l is None: l = [] l.append(a) - return a + return l \end{verbatim} \subsection{Keyword Arguments \label{keywordArgs}} |