arr = [1, 2, 3 ,4 , 5, 6, 7, 8, 9]
for i in range(len(arr)):
if arr[i] % 2:
arr[i] *= 2
print(arr)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
arr = [1, 2, 3 ,4 , 5, 6, 7, 8, 9]
for i in range(len(arr)):
if arr[i] % 2:
arr[i] *= 2
print(arr)