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

Express the perimeter of the triangle as a polynomial. 8x+2 5x-4 9x+3
Graph the first six terms of a sequence where a1 = -10 and d = 3.
Step by step directions Square root for 480
Angela has 24 golf balls and 18 golf clubs. She wants to sell packages of balls and paddles bundled together. What is the greatest number of packages she can se
Mrs.Henderson had 7/12dozen eggs in her refrigerator.Then she used 1/6 dozen eggs to make a cake.What fraction of a dozen is left?
Is 5/7 greater than 4/6
A flatbed truck is loaded 7,000 pounds of bricks. How many tons of bricks are on the truck?
Paulina works out with a 2.5 kilogram mass. What is the mass of the 2.5 kilogram mass in grams?
A vehicle is only 15% efficient. What happened to the other 85%?
What is the sum of 6/10 plus 7/12