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

_______ activities are one of the major factors affecting ecosystems across the world. 1. Human 2. Animal 3. Plant 4. Space
Question is in the picture, please help me out!!
b) In the last year, the average rainfall in Pokhara valley during the first 6 months was 150 mm and the average rainfall of the remaining months was 60 mm. Fi
A state law is: Laws that are the same across the entire country. Laws unique to that particular state. Laws that do not come from the Constitution. Laws that
take a moment to consider real-life figures who may have a lot of power and find ways to abuse it. think about 2-3 examples and explain how you think they might
Explain how you can tell if the expressions 7x – 4 and 6x – 4 – x are equivalent.
Draw u – v + w. please help !!!!!!!!!!
Draw a heating curve for 1 mole of methanol beginning at 170K and ending at 350K. Assume that the values given here are constant over the relevant temperature r
We petted the cats, and they purred while the dogs barked in the other room
Calculate the value of x if the product of x + 3 and 2x + 3 is 14 more then the product of x + 1 and 2x +1