Last active
October 24, 2017 23:04
-
-
Save ysnerdem/f2d0a4c48cd6a71b502c5832ad89fb9b 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
numbers = [] | |
positive_nums = [] | |
negative_nums = [] | |
while True: | |
num = int(input('Enter number:')) | |
numbers.append(num) | |
if len(numbers) == 10: | |
break | |
for i in numbers: | |
if i > 0: | |
positive_nums.append(i) | |
else: | |
negative_nums.append(i) | |
print("Negative Numbers:",len(negative_nums)) | |
print("Positive numbers:",len(positive_nums)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment