diff --git a/1.txt b/1.txt new file mode 100644 index 0000000..e69de29 diff --git a/Smitshah_intersection.py b/Smitshah_intersection.py new file mode 100644 index 0000000..7d7f836 --- /dev/null +++ b/Smitshah_intersection.py @@ -0,0 +1,15 @@ +a=[12,36,5,2,7,9,3] +b=[3,4,5,6,7] +c=[] +i=0 +while(i!=len(a)): + j=0 + while(j!=len(b)): + if(a[i]==b[j]): + c.append(a[i]) + j=j+1 + i=i+1 +print(c) + + + \ No newline at end of file