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

what is the number of bits per pixel called? please help!
Lucida is a cross-country ski racer. On Saturday she skied twice as many miles as she did on Sunday over the weekend she skied a total of 63 miles how far did s
What makes a unit rate a unit cost
what does courageous mean
There are 27 red or blue marbles in a bag.The number of red marbles is 5 less than 3 times the number of blue marbles. How many red marbles are in the bag? How
Emily and Sara had a total of $80.after Sara spent 1/3 of her money and Emily spent $17,Emily had twice as much money as Sarah.how much money did Emily have the
what does the word zest mean please put answer below
Which statement describes chemical reactions that take place at different rates? A. One reaction produces more products than the other. B. One reaction begins w
Is 11/20 greater or less than 1/2
when did the Aztec civilization end?