# python 3+
arr = [i for i in range(0, int(input())) if i % 2 == 1]
prediction = []
for element in arr: prediction.append(element**2)
print(sum(prediction))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# python 3+
arr = [i for i in range(0, int(input())) if i % 2 == 1]
prediction = []
for element in arr: prediction.append(element**2)
print(sum(prediction))