naymatarikpeace naymatarikpeace
  • 10-02-2022
  • Computers and Technology
contestada

Python problem: The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot:

Respuesta :

tonb
tonb tonb
  • 10-02-2022

Answer:

for i in range(1,10): print("{}.".format(i))

Explanation:

here's a one liner that does what you need.

Answer Link

Otras preguntas

What reasons did minority Americans give for joining the armed services?
what is the reaction for CL^2 + 2 KBr —> 2 KCL+Br^2 of 11 grams of potassium bromide? Answer choices: 1 mol 159.808g 7.39g 119.002g 2 2mol 11.0g Br^2 KB
In the 1760s, American colonists responded to Parliament’s taxes in several ways. Which way was most effective? formal demands by colonial legislators acts of v
A toy car uses a battery where 100j of chemical energy is transformed to 90j of electrical energy in a circuit,from which 75j is transformed to kinetic energy.s
Which statement is true? Bonds are generally called at par value. A current list of all bondholders is maintained whenever a firm issues bearer bonds. An indent
Millennials consume media very differently from those of preceding generations, making it difficult to craft effective advertising campaigns that target them. A
If you had to reform one of the forms of government which one would it be and what would you reform.
Sound wave cannot propagate through vacuum.Why?Plz give reason in short....​
12. WILL MARK BRAINLIEST!!! HELP!​
A co-worker has sent an email to Mahan asking him if he will take her on-call shift next Friday so she can go to a concert. Mahan has already made plans to take