t285.py 315 B

1234567891011121314
  1. def f(a,b,c=10,d=20,*e,**f):
  2. sortf = [(x,y) for x,y in f.items()]
  3. sortf.sort()
  4. print a,b,c,d,e,sortf
  5. f(1,2)
  6. f(1,2,3)
  7. f(1,2,3,5)
  8. f(1,2,d=3,c=5)
  9. f(1,2,e=['x','y','z'])
  10. f(1,2,d=3,c=5,e=['x','y','z'])
  11. f(1,2,3,5,['x','y','z'])
  12. f(1,2,3,5,['x','y','z'],z=5,y=9)
  13. f(1,2,3,5,['x','y','z'],'blorp','wee',z=5,y=9)