Write a program that accepts from the user the number of numerical values (specified by the user himself)

Write a program that accepts from the user the number of numerical values (specified by the user himself) for a variable and counts the number of entered three-digit numbers, taking into account that numbers in the range from 0 to 10000 (by default) can be entered.

Let’s create an empty array a, which will be sequentially filled with n elements entered by the user from the keyboard. We will also create variables k, which in the future will denote the number of entered three-digit numbers.

Then, using the for loop, we iterate over all the elements of the array, and thanks to the if condition, we find three-digit elements among them and count them. We output k. As a result, we get the following program:

a = []
n = int (input ())
k = 0
for i in range (0, n):
b = float (input ())
a.append (b)
for i in range (0, n):
if 100 <= a [i] <1000:
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.