An array of integers A (10) is given. All odd elements are doubled.

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

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

Using the for loop, we iterate over all the elements of the array, and thanks to the if condition, we find elements with odd values among them, then we double them. As a result, we get the following program:

n = []
a = 10
for i in range (0, a):
b = int (input ())
n.append (b)
for i in range (0, a):
if n [i]% 2! = 0:
n [i] * = 2
print (n)



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.