58.9k views
16 votes
CodeHS Python: Using a while loop, print out a list of numbers from 5 to 55 by fives

1 Answer

7 votes

Answer:

i = 5

while i < 56:

print(i)

i += 5

Step-by-step explanation:

I basically started off with a value and said keep adding on to this value by 5, while not going past 55.

User Mark Burgoyne
by
4.2k points