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

find the slope of the parabola y equals to e^(-4x) sin6x at the point P(2,4). write an equation for the tangent to the parabola at this point​
Giving brainliest too correct answer
On the first day of football camp there were 106 participants. By the fifth day only 98 remained. Determine the rate of change.
Pls I need help I need answer
someon please helpppp!
MY FRIENDS AND I___TO VUNG TAU NEXT MONTH [GO]
What is the main tenet of mechanical philosophy
In the first part of this unit, you learned about how, during the mid-late 1800s, Japan changed dramatically from an isolated society that was based on traditio
Plsssss helpppp, put these sentences in order
Priya collected 2,400 grams of pennies in a fundraiser. Each penny has a mass of 2.5 grams. How much money did priya raise?