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

If the sequence of one single strand of DNA is C-A-A-G-T-A-G-G-C-T, what is the sequence of the complementary strand?
$2.00 is nine percent of what ?
Which best summarizes the process of protein synthesis? a.RNA instructs DNA to make proteins. b.DNA unzips, resulting in the formation of two protein molecules.
A baking tray is 700mm by 500mm. A cake tin is 25cm in diameter. How many cake tins can fit on the tray at one time.
The two factors that most helped stimulate the land rush in the trans-Mississippi West were the
How do you work out 3/5 of 65?
If 3 apples cost $6, how much would 12 apples cost?
outcome of most European revolts in the 1830s
It takes Jo 90 seconds to cut a a certain type of wood into 10 pieces. How long would it take Jo to cut the same wood type into 20 pieces?
In the cafeteria there are 7 teachers 48 girls and 45 boys What is the probability that a person chosen at random from the cafeteria is a boy