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

PLEASE ANSWER AS SOON AS POSSIBLE REALLY WOULD APPRECIATE IT
What is the measure of
how did japan contribute to its own defeat?
If f(x) = 8x + 5, what is f(x)-1?
What is the slope of the line with equation y−3=-1/2(x−2)?
What information does the formula for an ionic compound provide?
If the contact surface between the 20-kg block and the ground is smooth, determine the power of force F when t = 4 s. Initially, the block is at rest
how large of a sample of state employee should be taken if we want to estimate with 98% confidence the mean salary to within 2000 g
Richards Corporation uses the weighted-average method of process costing. The following information is available for October in its Fabricating Department: Unit
2(x + 14) = 42 can someone please help me with a step by step explanation