Last active
June 17, 2016 14:37
-
-
Save KHerb/3d83ad8b7b855b3c0fc129d05b4a9ef3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prime = "prime.txt" | |
happy = "happy.txt" | |
pin = open(prime,'r') | |
pnumber = [p.strip() for p in pin.readlines()] | |
pin.close() | |
hin = open(happy, 'r') | |
hnumber = [h.strip() for h in hin.readlines()] | |
hin.close() | |
overlap = [] | |
for p in pnumber: | |
if p in hnumber: | |
overlap.append(p) | |
print "Here are the overlapping numbers -> " ,overlap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment