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

Which sentence uses a verb that agrees with its compound subject? a. A robin and a sparrow has eaten from the bird feeder. b. Either Mario or Larry are a nomin
Which of the following would reduce the resistance of a metal wire? a. increasing its thickness b. increasing its temperature c. increasing its length d. al
_____ convey information from specialized cells in the sense organs to the brain. a. Hormones b. Motor neurons c. Glial cells d. Sensory neurons
Draw a figure strategy a snail is at t bottom of a 10 ft wall. Each day it climbs up 3 ft. Each night it slides down back 1 ft. On which day will it reach to th
how many syllables are in the word noisy
What type of writing paints with words? expository descriptive argumentative relative
what is the answer to 60+60x0+1=
Two numbers are in a ratio of 7:4. Their. Sum is 220. Find the bigger number.
Colonists who supported independence from Britain were called what?
Jackie has 10 groups of pennies with 3 pennies in each group. Carlos has 5 groups of pennies with 100 pennies in each group. Who has more pennies? Explain how y