Python, Python Programming, Programming.
in the output result. {'orange', 'apple', 'banana'} Here we create a frozenset() constructor which is defined to store unique numbers. # Creating a frozenset colors = frozenset(["red", "green", "blue"]) # Attempting to add an element (will raise an error) # colors.add("yellow") print(colors) The