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 type of sensory imagery was used to describe the dress girl wore while playing the piano
Rewrite the expression as a sum of two fractions, and simplify. 200x-300/x
How does the rate of extinction compare to the rate of species formation on Earth today? The rate of speciation is faster. The rate of extinction is faste
Question 9(Multiple Choice Worth 1 points) (4.04 LC) Which table of ordered pairs represents a linear function? x y −6 26 0 3 6 26 12 101 x y −6 −3 0 3 6 1
What gametes can a fly which is homozygous dominant for both body color and wing length pass on to its offspring? a. ggll b. ggl or gl c. gl d. gl or gl?
Find all relative extrema of the function. use the second derivative test where applicable. (if an answer does not exist, enter dne.) f(x) = x2 + 3x − 1
What is the determinant of the coefficient matrix of the system –11 –2 0 55
the major function of crabonhydrates in living organisms is a source of
A plane takes off at an angle of elevation of 15° and travels in a straight line for 3,000 meters. What is the height of the plane above the ground at this inst
In which of these categories does a sneeze belong?