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

Which of the following finally brought the u.s. economy out of the great depression? a. vietnam war b. the korean war c. world war 2 d. world war 1
When you are thinking on the margin, the factor that should most influence your decision is most closely described by which of the following terms _________ a.
A motorcycle travels 845 meters in 16 seconds. what is its average speed?
need help asap Louisa put a bowl of water and a bowl of sand in the sun. She put a thermometer in each bowl. Then she recorded the temperature at the start and
What were some of hoover’s key convictions about government?
These four finch species lived together on an island. Each species ate something different: large seeds, small seeds, insects, and leaves. As more people moved
What doesb cecil jacobs tell scout? how does she react??
Archetypes change according to the culture the hero story originated in, but the hero's weapons, magic, and religious beliefs are usually the same in all cultur
What is the y value of the vertex 4x^2+8x-8
Describe the difference between autografting and heterografting