Answers for "unpacking tuples in python"

0

unpacking tuples in python

>>> def f():
    return 1,2
>>> a,b=f()
>>> a
1
>>> b
2
Posted by: Guest on March-12-2021
0

tuple unpacking

count, fruit, price = (2, 'apple', 3.5)
Posted by: Guest on July-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language