Friday, 10 December 2021

Python-Slip 8-Write a python script to find the repeated items of a tuple

Write a python script to find the repeated items of a tuple 

 #create a tuple

tuplex = 2, 4, 5, 6, 2, 3, 4, 4, 7

print(tuplex)

count = tuplex.count(4)

print(count)