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

The sum of two numbers is 77. The greater number is 5 more than the smaller number. Which equation can be used to solve for the smaller number? x(x − 5) = 77
Which of the following is true of the bubonic plague? (A) It followed established trade routes. (B) It was a European phenomenon. (C) It affected West Africa. (
Which of the following objects is most likely to be considered a form of functional art? a:stone b:flower c:garden d:brick
if n=44, what is the value of 75 -n+6
The ancient Egyptians kept pets. A. yes or B. No
what were the four methods of european colonial control that emerged over time
Which is an equation? a. 17 + x b. 45 / x c. 20x = 200 d. 90 - x
What are some factors that might stop a populations exponential growth ?
which one is bigger 26/36 or 21/43
Which is the best example of a hypothesis leading to new experimental methods?