# Write a Python program to Elements frequency in Tuple # Python3 code to demonstrate working of# Elements frequency in Tuple# Using defaultdict()from collections import defaultdict# initializing tupletest_tup = (4, 5, 4, 5, 6, 6, 5, 5, 4)# printing original tupleprint("The original tuple is : " + str(test_tup))res = defaultdict(int)for ele in test_tup:         # incrementing frequency    res[ele] += 1# printing resultprint("Tuple elements frequency is : " + str(dict(res)))