brandonortegax brandonortegax
  • 19-11-2020
  • Computers and Technology
contestada

You are given with a list of integer elements. Make a new list which will store square of elements of previous list. How can I do this on Python

Respuesta :

Cytokine
Cytokine Cytokine
  • 19-11-2020

We declare our lst variable with a list of different integers.

We then use list comprehensions to create a list of all of the elements in our lst variable squared. We print the new list to the console.

Ver imagen Cytokine
Answer Link

Otras preguntas

what plus what equal  56
(3x-2y)2=how do you solve this?
which nation is located on a peninsula
Laura  earns $ 255 by working 20 hours each week .Part A Write an equation to find how much Laura earns per hour. Use H to represent the hourly Equation Part B
What is the common angle of triangle PQT and triangle RSQ? Can someone explain this for me ?
If 2(x – 5) = –11, then x = ?
f(x) = 7x + 7, g(x) = 6x2Find (fg)(x).
Solve equations. log_{3} x =-2
This element is a liquid at room temperature. (A) Hg (B) Th (C) Na (D) Cl (E) Co
what is th answer to y=2