A number (n) of integers are entered. Find the number of negative numbers among them.

(The solution to this problem is provided in the Python 3.6.4 programming language).

Let’s create an empty array, which will be sequentially filled with the values entered from the keyboard, in the amount of n.

After that, using the for loop, we will iterate over all the elements of the array and, thanks to the if condition, find negative ones among them. Variable k is a counter of negative elements.

n = int (input ())
a = []
for i in range (0, n):
b = int (input ())
a.append (b)
k = 0
for i in range (0, n):
if a [i] <0:
k + = 1
print (k)



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.