Make a program for finding in the array a (10) the indices of elements whose values are not multiples of 4.

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

Let’s create an empty array a, which will be sequentially filled with elements entered by the user from the keyboard, in the number of n equal to 10.

Then, using the for loop, we iterate over all the elements of the array, and thanks to the if condition, we find elements among them with values that are not multiples of 4, and display the indices of such elements. As a result, we get the following program:

a = []
n = int (input ())
for i in range (0, n):
k = int (input ())
a.append (k)
for i in range (0, n):
if a [i]% 4! = 0:
print (i, end = “”)



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.