Last active
May 15, 2016 18:57
-
-
Save MuddyBootsCode/4a9360f0f92560acd8bad7fb975beddb to your computer and use it in GitHub Desktop.
Over Lapping Lists - Random Lists
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 | |
y = random.sample(range(1000), random.randint(1, 100)) | |
z = random.sample(range(1000), random.randint(1, 100)) | |
c = { item for item in z if (item in y)} | |
print(c) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment