unpacking tuples in python

Solutions on MaxInterview for unpacking tuples in python by the best coders in the world

showing results for - "unpacking tuples in python"
Daisy
01 May 2017
1count, fruit, price = (2, 'apple', 3.5)
Giovanni
24 Mar 2020
1>>> def f():
2    return 1,2
3>>> a,b=f()
4>>> a
51
6>>> b
72
8