Skip to content

Instantly share code, notes, and snippets.

@burki169
Created June 18, 2017 07:21
Show Gist options
  • Save burki169/1571364c70b49c891564bc61a82ac588 to your computer and use it in GitHub Desktop.
Save burki169/1571364c70b49c891564bc61a82ac588 to your computer and use it in GitHub Desktop.
Pyhton practices
import random
list_one = random.sample(range(100),20)
list_two = random.sample(range(100),20)
list_intersection=[a for a in list_one if a in list_two]
print(list_intersection)
@Supernoob2017
Copy link

nice****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment