Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

unpacking of tuples in python

tuple1 = ("python","c#","c++")
(programming_language_1,programming_language_2,programming_language_3) = tuple1
print(programming_language_1, "
",programming_language_2,"
",programming_language_3)
Source by openbookproject.net #
 
PREVIOUS NEXT
Tagged: #unpacking #tuples #python
ADD COMMENT
Topic
Name
6+9 =