my_set = {1, 2, 3, 4, 5}
print("Original Set:", my_set)
my_set.add(6)
print("After Adding 6:", my_set)
my_set.remove(3)
print("After Removing 3:", my_set)
element_to_check = 4
print(f"Is {element_to_check} in the set? {element_to_check in my_set}")
another_set = {4, 5, 6, 7, 8}
union_result = my_set.union(another_set)
intersection_result = my_set.intersection(another_set)
print("Union:", union_result)
print("Intersection:", intersection_result)
To embed this project on your website, copy the following code and paste it into your website's HTML: