#8 Python Tuple in Telugu | Python Tuple | Python in Telugu| Python Tuple | Tuple In Python|

Published: 17 April 2020
on channel: Telugu Programmer
5,488
144

#8 Python Tuple in Telugu | Python Tuple | Python in Telugu| Python Tuple | Tuple In Python|
Explained in very easy mode and every one can understand easily!!

Demo Code Python

cityTouple= ("Hyderabad","Vizag","Bangalore","Chennai","Kolkata","Vizag","Mumbai","Delhi","Pune")
print(cityTouple)


print(cityTouple[0])
print(cityTouple[1])
print(cityTouple[2])
print(cityTouple[3])
print('\n')
print(cityTouple[-1])
print(cityTouple[-2])
print(cityTouple[-3])
print(cityTouple[-4])


print(cityTouple[3:7])


#Add Two Tuples
carTouple = ('Tata', 'Maruthi', 'Hyundai')
cityTouple.extend(carTouple)
resultTuple =cityTouple + carTouple
print(resultTuple)


#Change Tuple
y = list(cityTouple)
y[2] = "Surat"
z= tuple(y)

print(z)


print(len(cityTouple))



#Count()
myTuple = (9, 4, 6,2, 3, 6, 4, 9, 1, 5)
y = myTuple.count(6)
print(y)

#Index()
myTuple = (9, 4, 6,2, 3, 6, 4, 9, 1, 5)
y = myTuple.index(6)
print(y)


On this page of the site you can watch the video online #8 Python Tuple in Telugu | Python Tuple | Python in Telugu| Python Tuple | Tuple In Python| with a duration of hours minute second in good quality, which was uploaded by the user Telugu Programmer 17 April 2020, share the link with friends and acquaintances, this video has already been watched 5,488 times on youtube and it was liked by 144 viewers. Enjoy your viewing!