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

Given the balanced equation representing a reaction:2H2 + O2 ==> 2H2O What is the mass of H2O produced when 10.0 grams of H2 react completely with 80.0 grams
why did the government give land grants to railroad companies
Given the equation representing a reversible reaction:NH3(g) + H2O(l) <=> NH4+(aq) + OH-(aq)According to one acid-base theory, the reactant that donates a
If f(x)=2x+5 and g(x)3x3rd power +2x+4 what if f(g(2))
A sample of gas is held at constant pressure. Increasing the Kelvin temperature of this gas sample causes the average kinetic energy of its molecules to (1) dec
round off 863 to one significant figure?
As the atoms of the Group 17 elements in the ground state are considered from top to bottom, each successive element has (1) the same number of valence electron
What groups are especially hard hit by poverty?
12 bags of plaster do 54m squared, how many bags are needed for 36m squared
what was one of the main purpose of attending school in ancient athens