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

How do you solve .42x 75.3
Hat would an estimate for 5/7 of 22
At top speed, a boat can cover 1,533 kilometers in 3 hours what unit rate does the boat travel during this time frame?
If two people are packing and delievering food what is the most efficient way to do the job
you walk 2 miles in 1/2 hour. at that rate how long will it take you to walk 3 miles
PLEASE PLEASE PLEASE HELP
why might a dog need to be coaxed outside during a thunderstorm
Round 0.623 to the nearest hundredth
Select the correct adjective form for the following sentence. Who here is ____ to lift 2,500 pounds? able abler ablest
In "By the Waters of Babylon," what are the priests forbidden to do? Talk to the Forest People Go East Fish in the river Enter the Dead Places