127k views
2 votes
Information technology for loop Calculate the sum of all odd numbers between 1 and 20. Print the total​

User Dleep
by
8.0k points

1 Answer

4 votes

Answer:

total = 0

for i in range(1, 20, 2):

total += i

print(total)

User Joschplusa
by
8.5k points

No related questions found