# Write a Python program to Group Similar items to Dictionary Values List # Python3 code to demonstrate working of # Group Similar items to Dictionary Values List# Using defaultdict + loopfrom collections import defaultdict  # initializing listtest_list = [4, 6, 6, 4, 2, 2, 4, 4, 8, 5, 8]  # printing original listprint("The original list : " + str(test_list))  # using defaultdict for default list res = defaultdict(list)for ele in test_list:          # appending Similar values    res[ele].append(ele)  # printing result print("Similar grouped dictionary : " + str(dict(res)))