Write a Python program to add member(s) in a set


Topic: Write a Python program to add member(s) in a set

Solution

color_set = set()
color_set.add("Red")
color_set.update(["Blue", "Green"])
print(color_set)



List all Python Programs