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

Erica knits 18 squares on monday. She knits 7 more squares each day for the rest of the week . how many squares does Erica have on friday?
What is 0.03 out of 1 as a percent?
Can any one help me if you do you will recive 30 points please help :,(
Morgan is 15 years younger than Mrs.Santos. Their combined age is 44. Write and Solve a system of equations that represents the situation. Interpret the solutio
Why is CF4 a non polar molecule, even though it contains polar bonds?
What is the cost of 2.6 pounds of cheese at $6.75 per pound?
One purpose of the executive branch is to
A softball team won 95% of 120 games played. How many games is that?
How does capillary action help sustain life on earth? a. Uptake of food and water by plants b. Change in climates c. Water strider walking on water
When a government official is __________, the House of Representatives has brought an official statement of charges against them. a. petitioned b. impeached c.