a = set([2,4,6,7,10])b = set([3,4,6,8,10,11]) print(a.intersection(b))
Standard input is empty
{10, 4, 6}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!