Skip to content

Instantly share code, notes, and snippets.

@Eserthesay
Created May 25, 2020 14:14
Show Gist options
  • Save Eserthesay/ea3e2e6d1f2f19035b7ebcd9e0dea864 to your computer and use it in GitHub Desktop.
Save Eserthesay/ea3e2e6d1f2f19035b7ebcd9e0dea864 to your computer and use it in GitHub Desktop.
f_loop=[1,5,7,-10,12,14,-16]
pos=[]
neg=[]
for i in f_loop:
if i<0:
neg.append(i)
elif i>0:
pos.append(i)
print(pos)
print(neg)
@Developer1Dev
Copy link

Cool code explained well
thanks for sharing
I have shared it on my gists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment