Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
143 B
3
Indexable
Never
sum = 0 
base = -1
power = 1
for i in range(0,4):
    sum = sum + base**(power)
    base = base - 3
    power = power + 2
print('sum = ', sum)
Leave a Comment