tuple unpacking in python functions code example Example: unpacking tuples in python >>> def f(): return 1,2 >>> a,b=f() >>> a 1 >>> b 2