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

Pubblicato il: 17 aprile 2020
sul canale di: 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)


In questa pagina del sito puoi guardare il video online #8 Python Tuple in Telugu | Python Tuple | Python in Telugu| Python Tuple | Tuple In Python| della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Telugu Programmer 17 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,488 volte e gli è piaciuto 144 spettatori. Buona visione!