Created
June 15, 2017 05:14
-
-
Save andrisasuke/235a6b36d8962844cd7832af165f5182 to your computer and use it in GitHub Desktop.
python expression generator example
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
trs = [1, 2, 3, 4, 5, 6] | |
xyz = [1, 6, 9, 13] | |
gen = [tr for tr in trs if tr not in xyz] | |
for p in gen: | |
print p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment