Skip to content

Instantly share code, notes, and snippets.

@MuddyBootsCode
Last active May 15, 2016 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuddyBootsCode/4a9360f0f92560acd8bad7fb975beddb to your computer and use it in GitHub Desktop.
Save MuddyBootsCode/4a9360f0f92560acd8bad7fb975beddb to your computer and use it in GitHub Desktop.
Over Lapping Lists - Random Lists
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