a = [float(input()) for i in range(int(input("n=")))]
print(a)
for i in range(0,len(a)):
if i % 2 == 0:
a[i] /= 3
else:
a[i] *= 2
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a = [float(input()) for i in range(int(input("n=")))]
print(a)
for i in range(0,len(a)):
if i % 2 == 0:
a[i] /= 3
else:
a[i] *= 2
print(a)