diff --git a/SOLUTIONS/comparelist1.py b/SOLUTIONS/comparelist1.py new file mode 100644 index 00000000..adc2cd2f --- /dev/null +++ b/SOLUTIONS/comparelist1.py @@ -0,0 +1,9 @@ +a = [1, 2, 3, 4, 5] +b = [9, 8, 7, 6, 5] + +lista =set(a) +listb =set(b) +print listb.intersection(lista) +returnMatches = set(['5']) #output + +print " ".join(str(return) for return in returnMatches )