import random
a = [random.randint(1,50) for i in range(10)]
print(a)
max_elc = a[0]
for i in range(2,len(a),2):
if max_elc < a[i]:
max_elc = a[i]
print(max_elc)
array = [i for i in range(2,100, 2)]
print(array.index(max(array)))
import random
a = [random.randint(1,50) for i in range(10)]
print(a)
max_elc = a[0]
for i in range(2,len(a),2):
if max_elc < a[i]:
max_elc = a[i]
print(max_elc)
array = [i for i in range(2,100, 2)]
print(array.index(max(array)))