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

If the student's birthdate is 10.7.2005 and the test was administered on 3.6.2014, what is the student's chronological age?
Wanda feels jealous that her best friend is hanging out with other girls from their class. What step in evaluating her emotions will be MOST helpful in understa
please help me human to human its due in an hour I've cried help me
what commonalities do the top five countries have that put them in the lead for entrepreneurial ventures?
Find a₁for each arithmetic series. Sa₃₀=240 and d=-2
Is 12/24 equivalent to 24/72?
A set of data has a normal distribution with a mean of 50 and a standard deviation of 8. Find the percent of data within each interval. from 42 to 58
Which set describes the domain of P(h)? {h|0sh≤ 40} {h|0 ≤h≤ 60} (P(h)| 0≤ P(h) ≤ 1,400} (P(h)| 0≤ P(h) ≤ 1,800}
When a system is only planned to be implemented for five years and then purposefully phased out and replaced with a new system, this is called __________.
c. What would be the cost for 12 tickets?