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