Initial commit
This commit is contained in:
7
python/Sets/Python program to add member(s) in a set.py
Normal file
7
python/Sets/Python program to add member(s) in a set.py
Normal file
@@ -0,0 +1,7 @@
|
||||
#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)
|
||||
Reference in New Issue
Block a user