cells = 1
for i in range(1, 25):
if i % 3 == 0:
cells *= 2
print(cells, end = " ")
____________________
banked = 1000
for i in range(1, 13):
if i <= 10: #a)
print(increasement)
if i >= 3: #b)
print(banked)
increasement = banked * 0.02
banked += increasement
length = 10
sum = 0
if 2 <= i <= 10: #a)
print(length)
if i <= 7: #b)
sum += length
increasement = length * 0.1
length += increasement
print(sum)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
cells = 1
for i in range(1, 25):
if i % 3 == 0:
cells *= 2
print(cells, end = " ")
____________________
banked = 1000
for i in range(1, 13):
if i <= 10: #a)
print(increasement)
if i >= 3: #b)
print(banked)
increasement = banked * 0.02
banked += increasement
____________________
length = 10
sum = 0
for i in range(1, 13):
if 2 <= i <= 10: #a)
print(length)
if i <= 7: #b)
sum += length
increasement = length * 0.1
length += increasement
print(sum)