<filename>Set/SetOperstions.py
A={1,2,3,4,6,6,5}

B={3,4,5,6,100,90}

print(A.union(B)) #using function

print(A|B) # using operator


print(A.intersection(B))
print(A&B)

print(A.difference(B))
print(A-B)



# print(B.difference(A))
# print(B-A)






<filename>Set/SetOperstions.py
A={1,2,3,4,6,6,5}

B={3,4,5,6,100,90}

print(A.union(B)) #using function

print(A|B) # using operator


print(A.intersection(B))
print(A&B)

print(A.difference(B))
print(A-B)



# print(B.difference(A))
# print(B-A)






#using function # using operator # print(B.difference(A)) # print(B-A)