magayuma278
magayuma278 magayuma278
  • 17-01-2022
  • Computers and Technology
contestada

Use a for loop to output all multiples of 10 , starting at 10 and going to and including 1000?
This is python
Pls help!!

Respuesta :

TheOnlyLman3613
TheOnlyLman3613 TheOnlyLman3613
  • 17-01-2022

Answer:

def main():

 for i in range(10,1010,10):

   print(str(i))

main()

Explanation:

def main(): # Creates main function

 for i in range(10,1010,10): # is an iteration that starts at 10, ends at 1010 and skips 10 numbers per iteration

   print(str(i)) # Outputs each multiple of 10

main() # Calls the main function

Hope this helps :)

Answer Link

Otras preguntas

Did tine 3 main feature inside a prokaryotic cell
Martin Luther believed in salvation through
Greta is writing a paper on near-Earth objects for her science class. She collected the information shown in the table, but she forgot to label each object. Bas
Sandra is 4 feet tall and Pablo is 10% taller than Sandra, and machela is 8% taller than Pablo.
Characteristics of the cell wall include which of the following? cellulose phospholipids and protein increased strength to the cell selective membrane
which of the fallowing can often lead to gridlick in the legislative process?
Which is a better source of water vapor, landmasses or oceans?
find the length of the third side. round to the nearest tenth if necessary. legs: 12in. and 16in
Her unfriendly manner rubbed me the wrong way. What type of language is the phrase “rubbed me the wrong way”? A. literal B. technical C. figurative D. connota
please describe of "table"