Created
May 25, 2020 14:14
-
-
Save Eserthesay/ea3e2e6d1f2f19035b7ebcd9e0dea864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool code explained well
thanks for sharing
I have shared it on my gists.