7 lines
165 B
Python
7 lines
165 B
Python
|
#A new empty set
|
||
|
color_set = set()
|
||
|
color_set.add("Red")
|
||
|
print(color_set)
|
||
|
#Add multiple items
|
||
|
color_set.update(["Blue", "Green"])
|
||
|
print(color_set)
|