Python Program to find the Intersection || Sets || Python
In this we are going to see a basic program which performs intersection between two sets in Python Programming Language.


set1 = {4, 7, 1, 3, 5, 6, 8, 9, 2}
set2 = {2, 6, 4, 10, 7, 1, 11}
print("Set1 : ", set1)
print("Set2 : ", set2)

# For Intersection Of Two Sets
set3 = set1.intersection(set2)
print("-------------------------------------")
print("After Intersection Of Two Sets The 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

Previous Post Next Post