Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

packing a tuple

The statement t = 12345, 54321, 'hello!' is an example of tuple packing: 
the values 12345, 54321 and 'hello!' are packed together in a tuple. 
The reverse operation is also possible:

>>> x, y, z = t
Comment

PREVIOUS NEXT
Code Example
Python :: clear list in python 
Python :: get database image in dajngo 
Python :: generate a hash/secret python 
Python :: make max function returning more than one value python 
Python :: enumerate count 
Python :: database access layer django 
Python :: django template many to many count 
Python :: linear plot 1D vector for x python 
Python :: Django-rest-framework-simplejwt.readthedocs.io 
Python :: giving activation in dense layer keras 
Python :: python find occurance of item 
Python :: display calendar 
Python :: list of ones python 
Python :: networkx - unique combinations of paths 
Python :: run python script in synology sample 
Python :: repeat printing rows excel using python whenever i run the script 
Python :: numpy init array 
Python :: how to create a cubic function in python 3 
Python :: how to do welcome in bubble letters in python 
Python :: vbscript shutdown remote computer 
Python :: ldap python how to print entries 
Python :: python matplotlib fullscreen zoom 
Python :: Improve the Request Change User-Agent 
Python :: Python Creating a Tuple 
Python :: WARNING: Ignoring invalid distribution -pencv-python 
Python :: send2trash 
Python :: sample mapping in pandas 
Python :: NLP text summarization with LSA 
Python :: return a table of selected features pandas 
Python :: unittest only run test if other tests passes 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =