result = 0
a = []
for i in range(1, 51):
if(i % 3 == 0):
a.append(i)
for i in range(len(a)):
result += a[i]
print(result)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
result = 0
a = []
for i in range(1, 51):
if(i % 3 == 0):
a.append(i)
for i in range(len(a)):
result += a[i]
print(result)