-
-
Save vikychoi/7b3b918366c81ed292dd68f52a44fa3b to your computer and use it in GitHub Desktop.
This file contains 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
import random | |
a=[] | |
b=[] | |
c=[] | |
for i in range (random.randint(10,20)): | |
a.append(random.randint(1,100)) | |
for i in range (random.randint(10,20)): | |
b.append(random.randint(1,100)) | |
for i in a: | |
if i in b and i not in c: | |
c.append(i) | |
c.sort() | |
print(a,b,c) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment