Python, Data Science, Data Engineering, Programming, Coding.
Accessing an item in the tuple print(tup1[0]) # Slicing a tuple print(tup1[0:2]) # Counting the number of occurrences of an item in a tuple tup1.count(1) # Finding the index of an item in a tuple tup1.index(1) # Deleting a tuple del tup1 # Iterating over a tuple for item in tup2: print(item) #