Computer Science, asked by nidhinikita18, 4 months ago

write a program to declare list 'L' and count the total ni. of negative values in the list​

Answers

Answered by akruidhasa
1

Explanation:

pos_count, neg_count = 0, 0

for num in list1:

if num >= 0:

pos_count += 1

else:

neg_count += 1

print("Positive numbers in the list: ", pos_count)

print("Negative numbers in the

Similar questions