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

why would i need to use square roots and cube roots
what is another way to write 9 times 200
Which statement best summarizes the importance of meiosis to reproduction?
last year a sticker factory made a total of 528 390 booklets of stickers how many hundreds of booklets of stickers were made?
Ethene is the first member of the a. Alkane series b. Alkyne series c. Saturated hydrocarbons d. Unsaturated hydrocarbons e. Aromatic hydrocarbons
how do you say hole in french
the 6:00 am temperatures for four consecutive days in the town of lincoln were -12.1 celcius, -7.8 celcius, -14.3 celcius, and -7.2 celcius. what was the averag
What is the value of the digit 7 in 870,541
What is an artifact? a. a fossil b. an article from a historical text c. anything man-made and used by humans d. anything discovered during an archaeological
Help...1. Simplify 2+17x-5x+9......