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 is 3182 divided by 5??
Completa esta historia con el preterito de los verbos que aparecen entre parentesis. Mis amigos y yo fuimos a la sierra. Mis padres nos _______ _______ (decir)
Best explanation for the rise of slavery in the colonies
The stability of atomic nuclei seem to be related to the ratio of _____. protons to electrons neutrons to protons isotopes to neutrons neutrinos to gamma rays
what's the gcf of 38, and 68
The triangle below has a total perimeter of 450 cm: picture of a triangle with sides 128 and 150. Third side unknown Write an equation and solve it to find the
7 1/6 divided by 5/9
Which sentence is an example of indirect characterization? A. Pat hung her head without speaking a word. B. Susan Rice gave me a journal on my birthday. C. Samu
please help. what are some tools authors use to connect ideas in narrative nonfiction?
the range of f(x) = 7 4x is all positive real numbers. true or false