Home / Python Tips Generated By ChatGPT / Sets for Unique Collections in Python Use sets to store an unordered collection of unique items. Source Code my_set = {1, 2, 3, 3, 4} print(my_set) # Output: {1, 2, 3, 4}