demo_ref_tuple_count.py:
thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5) x = thistuple.count(5) print(x)
C:\Users\My Name>python demo_tuple_count.py
2