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

Which of the following was the area that Franklin Roosevelt and Herbert Hoover disagreed most, in the 1932 presidential election? A) The value of a balanced f
When a number is decreased by 20% of​ itself, the result is 136. What is the​ number?
Find an equation of the circle whose diameter has endpoints (1,-4) and (-3,6).
What is ameba and how does it move?
Please select the word from the list that best fits the definition A viewing of the behavior of groups in a systematic way. sociological perspective sociologica
if 26-x = x is a true sentence, the value of x is​
Analyze the diagram below and complete the instructions that follow. Completethe proportion based on the similar triangles in the diagram. A. ST B. TS C. QRDSR​
The chart shows the number of band members in each age group for the school band. Which histogram correctly shows the data in the chart? Can anyone help me pls
the population of the state of colorado was about 5,030,000 people in 2013 which number best approximates the population as a single digit times a power of 10
Write a polynomial in standard form with zeros 1, 2, and −5. a. x3 – 2x2 + 13x – 10 = 0 b. x3 – 4x2 + 17x + 10 = 0 c. x3 + 2x2 – 13x + 10 = 0 d. x3 + 6x2 –