Skip to content

Instantly share code, notes, and snippets.

@andrisasuke
Created June 15, 2017 05:14
Show Gist options
  • Save andrisasuke/235a6b36d8962844cd7832af165f5182 to your computer and use it in GitHub Desktop.
Save andrisasuke/235a6b36d8962844cd7832af165f5182 to your computer and use it in GitHub Desktop.
python expression generator example
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