Python tuples
What is tuple?
Tuple is a data structure which is also called collection of item in which we can store anything like string , float , integer.
We write the item of the tuple inside "parenthesis ()" and each item separated by " comma ,".
Duplicates are allowed.
Immutable in nature.
1)Empty tuple
2)tuple with items
3)To find the length of the tuple use len. function.
4)copy
5)index= by using we can find out the index number of the item.





Comments
Post a Comment