Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Tuples unpacking

>>> b = ("Bob", 19, "CS")
>>> (name, age, studies) = b    # tuple unpacking
>>> name
'Bob'
>>> age
19
>>> studies
'CS'
Source by openbookproject.net #
 
PREVIOUS NEXT
Tagged: #Tuples #unpacking
ADD COMMENT
Topic
Name
2+8 =