Skip to content

Instantly share code, notes, and snippets.

@ItsCosmas
Last active July 24, 2019 12:44
Show Gist options
  • Save ItsCosmas/27f493dfe5b32557bc390b56a0a3f159 to your computer and use it in GitHub Desktop.
Save ItsCosmas/27f493dfe5b32557bc390b56a0a3f159 to your computer and use it in GitHub Desktop.
Filters
# FILTERS
nums = [11, 22, 33, 44, 55]
result = list(filter(lambda x: x % 5 != 0, nums))
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment