Functions can modify mutable arguments passed to them. A list (poorly named), called a "list", has (using a non-idiomatic style) each of its elements, multiplied by two, in place. For instance:
>>> def inplace(seq): ... seq[0] = 5 ... >>> a = [1,2,3] >>> print a [1, 2, 3] >>> inplace(a) >>> a [5, 2, 3]
source share