/
๐Ÿ

Tuple data structuer

python

Some important notices about tuples.

python
i_tuple = (1,2)
x,z = i_tuple # unpacking tuple
print(x,z) #output : 1,2
x,y,z = i_tuple #error
Edit this page
logo
Hi Mohsen save your notes