Write a Python function to create a union of sets.
Topic: Write a Python function to create a union of sets.
Solution
def union_of_sets(Set1, Set2): result = Set1 | Set2 return result
List all Python Programs
Solution
def union_of_sets(Set1, Set2): result = Set1 | Set2 return result