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

plz help due really soonWhich sentence correctly paraphrases this passage from Alice's Adventures in Wonderland by Lewis Carroll? d light​
if we write a 3 in front of a two-digit number, the new three digit number will be 24 more than 7 tines the origional two digit number. What was that number
Taking notes allows your mind to wander, but still capture important information. Please select the best answer from the choices provided T F.
First try was incorrect Thor needs to mix 1.5 pints of liquid lemonade concentrate with 1.5 pints of water to make lemonade. Thor has 4.5 pints of lemonade conc
Based on the text, what is an example of something an ancient myth might be about?
Alexis likes to study late at night because she has always been a night person. Alexis is using her personal preferences to form her study routine. Please selec
HELP PLEASE TYSMMSSM
plz help due really soonWhich sentence correctly paraphrases this passage from Alice's Adventures in Wonderland by Lewis Carroll? d light​
Nellie has a bankruptcy on her credit report and therefore pays higher interest rates on her current loans. She calculates that the extra money she pays in addi
Zahir completes 1/5 of his homework in 5/15 of an hour. How much time will it take him to complete all of his homework?