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