Tuple Python
tuple = ("Facebook", "Instagram", "TikTok", "Twitter")
moi_crn
tuple = ("Facebook", "Instagram", "TikTok", "Twitter")
a=(1,2,3,4)
print(a[-3])
my_tuple = ('a', 'p', 'p', 'l', 'e',)
print(my_tuple.count('p')) # Output: 2
print(my_tuple.index('l')) # Output: 3
name_of_students = ("Jim" , "yeasin" , "Arafat")
print(name_of_students.index('Arafat'))
tupel python
count(x) : Returns the number of times 'x' occurs in a tuple
index(x) : Searches the tuple for 'x' and returns the position of where it was first found