# Creating a set using string test_set = set("geEks") # Iterating using for loop for val in test_set: print(val)
mySet = {1, 2, 3} for x in mySet: print(x) """ Output: 1 2 3 """