Skip to content

Instantly share code, notes, and snippets.

@ysnerdem
Created January 21, 2018 20:46
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 ysnerdem/b02053783081a9b7dc75a958bc7eaf66 to your computer and use it in GitHub Desktop.
Save ysnerdem/b02053783081a9b7dc75a958bc7eaf66 to your computer and use it in GitHub Desktop.
lst1 = list(map(lambda x: x*2, (i for i in range(1, 100))))
lst2 = [i for i in lst1 if i % 3 == 0 and i % 5 == 0]
print(lst2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment