Skip to content

Instantly share code, notes, and snippets.

@Anthonyhawkins
Created June 8, 2021 18:03
Show Gist options
  • Save Anthonyhawkins/6994ad4be6e21cee680494076ecdc0b9 to your computer and use it in GitHub Desktop.
Save Anthonyhawkins/6994ad4be6e21cee680494076ecdc0b9 to your computer and use it in GitHub Desktop.
def prune_empty(items):
return list(filter(None, items))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment