muhammadrafilakhani
muhammadrafilakhani muhammadrafilakhani
  • 19-12-2020
  • Computers and Technology
contestada

Python program which squares all the number in list number = [2,3,4,5,6,7,8,9] and store it in another list name square. Please write a program :|

Respuesta :

th3g3ntl3man
th3g3ntl3man th3g3ntl3man
  • 19-12-2020

Answer:

l = [2,3,4,5,6,7,8,9]

def solve(l):

for i in l:

print(i**2)

solve(l)

Explanation:

loops through each element of the list and squares it.

Answer Link

Otras preguntas

Compare drama to other literary genres. For example, how does drama compare to film? Give specific examples to support your answer.
Solve for x. 6x = –42 A. –9 B. –8 C. –7 D. 9
How many solutions does the equation have? a+5=1/5(15+5a) A. one solution B. infinite solutions C. no solution 1/5 is a fraction fyi
200 is blank times ad much as 2
What number must be added to 14,056 to result in the sum of 38,773
a bedroom has perimeter of 46 feet. if the length of the the bedroom is 11 feet, what is the wigthof the bedroom.
a ssuba driver swam 96 feet beneath the surface of the lake he then climbs up 49 feet what is his depth now
Which of the following was the last wartime conference attended by FDR? A. Casablanca B. Yalta C. Tehran D. Potsdam
how do you convert unit rates? my question is... 13 cm/min = ____________ cm/hr help!!!!
what is the value of x in the equation 3x-4y=65 when y =4