anjola2444 anjola2444
  • 13-07-2022
  • Computers and Technology
contestada


Write a program that prints out a list of the integers from 1 to 20 and their
squares. The output should look like this:
1-1
2-4
3-9
20-400

Respuesta :

Vortorix
Vortorix Vortorix
  • 13-07-2022

Answer:

for x in range(1,20):

   print(f'{x}-{(x**2)}')

Answer Link

Otras preguntas

Read the following paragraphs carefully to see whether or not they create a mood. My name is Trinius. I don't really know why I followed the crowd up this hill.
What is 8.0802 rounded to nearest whole number?
What was "The March of the Flag"?
Which statement is true about the coordinates of points M and N?
The perimeters of two similar right triangles have a ratio of 3 to 5 . If the height of the larger triangle is 12 meters , what is the height of the smaller tri
Reconnaissance and surveillance actions normally conducted in a clandestine or covert manner to collect or verify information of strategic or operational signif
Kevin's car can go 315 miles on one tank of gas he used just under 40% of a full tank of gas to get to a sporting event traveling at an average speed of 60 mile
As stated in his salutation to the Romans, Paul was called of God to be: a servant a separator an apostle an evangelist
Since an object moving in uniform circular motion keeps a constant speed, there is no force necessary to keep it in motion. True False
Use the table below. Do x and y have a proportional relationship? Explain. ( Thank you so much in advanced )​