25rhuynh 25rhuynh
  • 02-05-2022
  • Computers and Technology
contestada

CodeHS Python: Using a while loop, print out a list of numbers from 5 to 55 by fives

Respuesta :

techuram techuram
  • 03-05-2022

Answer:

i = 5

while i < 56:

 print(i)

 i += 5

Explanation:

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

Answer Link

Otras preguntas

WHICH TWO COMPOSERS DID BEETHOVEN MEET IN HIS EARLY TWENTIES?
Write a modern question that means the same as: What would'st thou? Who hath dared to wound thee?
Where is the midpoint of (6,11) and (10,16) Use the rules of negative numbers to calculate -5+-7--3
you run 100m in 25s. If you later run the same distance in less time, explain if your speed increases or decreases
what is 7.3519 to 1 decimal place?
Which statement best describes the Odyssey? A. The Odyssey was the earliest submarine used by the ancient Greeks to explore the many surrounding seas. B. The Od
Describe a time when you felt antagonized or were responsible for antagonizing someone yourself.
Heterozygous genes will always display a dominant trait.
A coat regularly sells for $59.00. It is on sale for 20% off. What is the sale price of the coat?
Simplify 17d-5e+13d-7e