Skip to content

Instantly share code, notes, and snippets.

@kvasdopil
Created December 17, 2015 16:00
Show Gist options
  • Save kvasdopil/0f18ca444b919825087d to your computer and use it in GitHub Desktop.
Save kvasdopil/0f18ca444b919825087d to your computer and use it in GitHub Desktop.
l1 = [-5, 1, 4, 8, 10, 3, 10, -9, -4, 0,-9, 10]
l2 = []
for i in l1:
if i <= 0:
l2.append(i)
elif i % 5 != 0:
l2.append(i)
print(l2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment