444,412 views
10 votes
10 votes
CodeHS Python: Using a while loop, print out a list of numbers from 5 to 55 by fives

User Vahe Shadunts
by
3.1k points

1 Answer

21 votes
21 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 Amustill
by
2.9k points