lst = [int(input()) for _ in range(int(input('n = ')))]
print(len([i for i in lst if i < 0]))
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
lst = [int(input()) for _ in range(int(input('n = ')))]
print(len([i for i in lst if i < 0]))