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

Who belonged to the French bourgeoisie? the peasantry the middle class the nobility the monarch
Who led the Continental Army during the Revolutionary War? A. George Washington B. Benedict Arnold C. Patrick Henry D. Ethan Allen
If 60 marks is 40%, how much is full marks (Show your working out)?
A mechanic earns $17.25 an hour the president of the company 6 2/3 times as much for each hour he works the janitor earns 3/5 as much as the mechanic how much
Critically, evaluate the role of attitudes in initiating and building sustainable relationships
Why does Don Quixote decide to hurt himself? A. He wants to frighten Sancho Panza. B. He is angry at his bad luck. C. He has been put under a spell by Frest
what defines the group of organisms referred to as protist
What assumption is made with supply-side economics?
what is Oort cloud in astronomy?
Fungi don t live for very long. a. True b. False