Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created July 19, 2018 17:28
Show Gist options
  • Select an option

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

Select an option

Save bee-san/63fc4bbce76756e39d4ef3e59308b12f to your computer and use it in GitHub Desktop.
x = range(-5, 5)
new_list = []
for num in x:
if num < 0:
new_list.append(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment