Open essepuntato opened 4 years ago
my_set = set()
my_set.add("Bilbo")
my_set.add("Frodo")
my_set.add("Sam")
my_set.add("Pippin")
my_set.add("Merry")
lotr_characters = {"Bilbo", "Frodo", "Sam", "Pippin", "Merry"}
my_set = set()
my_set.add("Bilbo")
my_set.add("Frodo")
my_set.add("Sam")
my_set.add("Pippin")
my_set.add("Merry")
print(my_set)
Write a code in Python to create a set of the following elements:
"Bilbo"
,"Frodo"
,"Sam"
,"Pippin"
,"Merry"
.