Loading...

Tuple in Python | Python Tuples(Creating,Indexing&Slicing)Complete Explanation | Python Programming

15824 361________

Tuple:
Tuples are used to store multiple items in a single variable.
A Tuple is a collection which is ordered, unchangeable(immutable) and allow duplicate values.
Tuples are written with round brackets (parenthesis).
Create a Tuple:
Ex: t=(10,20,”robo”,40)
Create Tuple with One item:
To create a tuple with only one item, you have to add a comma after the item, otherwise python will not recognize it as a tuple.
Ex:
t=(“robo”,)
print(type(t))

Subscribe my channel : www.youtube/SBTechTuts

#Tuple
#PythonTuples
#Python
#SBTechTuts
Tuple in Python | Python Tuples(Creating,Indexing&Slicing)Complete Explanation | Python Programming
tuple
tuples
python programming
python
python coding
python tutorial
learn python
python tuples
python tuple
python language
typle with example
how to create tuple in python
in telugu
sudhakar bogam
sb tech tuts

コメント