1 #!/usr/bin/env python 2 3 def f(a, b, c=a+b): 4 return a + b + c 5 6 a = 10 # used in f default 7 b = 20 # used in f default 8 x = f(1, 2) 9 10 # vim: tabstop=4 expandtab shiftwidth=4