Â
In this we are going to see a basic program which performs union operation in Python Programming Language.
set1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
set2 = {11, 12, 13, 14, 15, 16, 17, 18, 19, 20}
print("Set1 : ", set1)
print("Set2 : ", set2)
# For Union Of Two Sets
set3 = set1.union(set2)
print("-------------------------------------")
print("After Union Of Two Sets, the final Set Is : ", set3)
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP