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

Who found Uranus? Name?​
What is time paradox?How does time paradox works??
Type Calculations. Given the balanced equation: 2 Al + 3 H2SO4---> Al2(SO4)3 + 3 H2 Molar mass (g/mol): Al=26.98; H2SO4=98.08; Al2(SO4)3= 342.15; H2=2.02 A)
Complete these sentences with either the present indicative or present subjunctive of the verb in parentheses. 3 1) Dudo que ella_______ (levantar) pesas en el
Michael owns a machine shop. In reviewing the shop's utility bills for the past 12 months, he found that the highest bill of $2,400 occurred in August when the
usetilesAlgebrafactor​ for X^2-2x-3
If the phase of the vibrating sources was changed so that they were vibrating completely out of phase, what effect would this have on the interference pattern?
PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!! In California, Clay is surfing on a wave that propels him toward the beach with a speed of 5.0 m/s. The wave crests are each
The Golden Ratio appears in the design of the Greek Parthenon because the width and height of the façade are related by the equation [tex]\frac{W+H}{W} = \frac{
What is a randomized controlled trial?