✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
1. Для чого призначений наведений фрагмент коду:
a = [1, 5, 7, 31, -5]
for i in range(len(a)):
a[i] = (i if i % 2 ==0 else a[i])