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

Benjamin Franklin could best be described as __________. enterprising idle comical deceitful
People wanted _____ luxuries after the crusades was over A: more B: less
what is the HCF of 14 and 21?
What is 1/9 of 63% of $6,000?
Solve 5m − 3h = 45 for h. Show your work.
The most visible new black organizations in the South were a. military clubs. b. colleges. c. churches. d. political parties.
what is the volume in cubic feet of a greenhouse that is 20 ft long, 15 ft wide, 10 ft high
Characteristics of LCM
The formal duties assigned to the Vice President by the Constitution are A. to provide advice to the President on issues of national security and economic polic
why is the sequence of DNA important? A. It is used to create copies of cells. B. It makes sure there will be no mistakes in the information. C. It determines