-
-
Save Developer1Dev/7f0188eb9fe4696bcb1491937b2a0f4e 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
#I like this code | |
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