Created
June 18, 2017 07:21
-
-
Save burki169/1571364c70b49c891564bc61a82ac588 to your computer and use it in GitHub Desktop.
Pyhton practices
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 | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice****