Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

unpacking tuples in python

>>> def f():
    return 1,2
>>> a,b=f()
>>> a
1
>>> b
2
Source by openbookproject.net #
 
PREVIOUS NEXT
Tagged: #unpacking #tuples #python
ADD COMMENT
Topic
Name
7+4 =