Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created July 23, 2018 15:41
Show Gist options
  • Select an option

  • Save bee-san/ea84b9cbb6a90199e07f5806e60746e8 to your computer and use it in GitHub Desktop.

Select an option

Save bee-san/ea84b9cbb6a90199e07f5806e60746e8 to your computer and use it in GitHub Desktop.
x = range(-5, 5)
all_less_than_zero = list(filter(lambda num: num < 0, x))
print(all_less_than_zero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment