73.2k views
5 votes
4.9 Code Practice: Question 2

4.9 Code Practice: Question 2-example-1
User Rushi
by
4.9k points

2 Answers

2 votes

Answer:

sum = 0

for r in range (20, 91, 10):

sum += r

print(sum)

Step-by-step explanation:

User Mendi Barel
by
4.7k points
4 votes

total = 0

for x in range(20, 91, 10):

total += x

print(total)

I hope this helps!

User Bluearrow
by
5.5k points