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

Why does George Orwell present Animal Farm as a fable? A. to show what a perfect society would be like B. to make a moral point at the end of the story C. to po
what is the direction of velocity of an object moving along a circular path??
On a particular day, the wind added 2 miles per hour to Jaime's rate when she was rowing with the wind and subtracted 2 miles per hour from her rate on her retu
factorise :12(x²+7)²-8(x²+7)(2x-1)-15(2x-1)²
The basic requirements for industry growth are capital natural resources and workers true or false
How do I find a2 and a3 for the following geometric sequence? 54, a2, a3, 128
What is the value of m in the equation 1/2m - 3\4n = 16 , when n = 8?
Let f(x) = x2 - 81. Find f-1(x).
Mary and Jan are both at a gas station at Hill and Elm. From the station, Mary Drives 24 miles north and Jan drives 10 miles west. Find the distance between Mar
Which German journalist wrote about the struggle between the classes and the overthrow of capitalism in his book, Das Kapital? A. Charles Darwin B. Karl Marx C.