Set intersection operation in Python

Set Intersection

The intersection method does the intersect operation between sets.


a = set([1, 2, 3]) 
b = set([2, 3, 4]) 
a.intersection(b) 




















Home »
  Python »
    Data Types »




Data Types
String
String Format
Tuple
List
Set
Dictionary