📄️ A
This Python code illustrates the use of sets, which are unordered collections of unique elements that do not allow duplicates. It initializes a set of months, prints the original set, adds "July" and "August" to the set, and demonstrates that sets maintain uniqueness and handle duplicates.
📄️ B
This Python code works with sets, demonstrating the concept of set union. It initializes two sets, 'set1' and 'set2,' and uses the union operation to create a new set containing all unique elements from both sets. Duplicate elements are automatically removed, showcasing the fundamental set operation of union.
📄️ C
This Python code works with sets and demonstrates the concept of set intersection. It initializes two sets, 'set1' and 'set2,' and uses the intersection operation to create a new set containing elements that are common to both sets. Duplicate elements are automatically removed. The code illustrates the fundamental set operation of intersection.