#!/usr/local/bin/python2 def f(*a, **k): print a, k l = [1,2,3] f(l.pop(), l[-1])