Home / Python Tips Generated By ChatGPT / Using set for Unique Collections in Python Use sets to store unique items. Source Code my_set = {1, 2, 3, 4, 4, 5} print(my_set) # {1, 2, 3, 4, 5}