>>> function(0, a=0)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
-TypeError: keyword parameter redefined
+TypeError: function() got multiple values for keyword argument 'a'
\end{verbatim}
When a final formal parameter of the form \code{**\var{name}} is
>>> x = 100 # this gets overwritten
>>> [x**3 for x in range(5)]
[0, 1, 8, 27, 64]
->>> x
-4 # the final value for range(5)
->>
+>>> x # the final value for range(5)
+4
\end{verbatim}
empty list to the slice). For example:
\begin{verbatim}
->>> a
-[-1, 1, 66.6, 333, 333, 1234.5]
+>>> a = [-1, 1, 66.6, 333, 333, 1234.5]
>>> del a[0]
>>> a
[1, 66.6, 333, 333, 1234.5]
>>> tel.keys()
['guido', 'irv', 'jack']
>>> tel.has_key('guido')
-1
+True
\end{verbatim}
The \function{dict()} contructor builds dictionaries directly from
>>> sys.ps1 = 'C> '
C> print 'Yuck!'
Yuck!
-C>
+C>
+
\end{verbatim}
These two variables are only defined if the interpreter is in
>>> 10 * (1/0)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
-ZeroDivisionError: integer division or modulo
+ZeroDivisionError: integer division or modulo by zero
>>> 4 + spam*3
Traceback (most recent call last):
File "<stdin>", line 1, in ?
>>> '2' + 2
Traceback (most recent call last):
File "<stdin>", line 1, in ?
-TypeError: illegal argument type for built-in operation
+TypeError: cannot concatenate 'str' and 'int' objects
\end{verbatim}
The last line of the error message indicates what happened.