Possible Duplicate: “Least Astonishment” in Python: The Mutable Default Argument In the following code, should the output not be 6 6 7 6? But the actual output is very different, as mentioned below: i = 5 def fs(args=i): print args print i i = 6 fs() fs(7) The actual output is: 5 6 7 6 Continue reading...