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

solve for t d=(1/2) at^2
1.What is the probability of choosing a face card from a deck of 52 cards (face cards are jacks, queens, and kings)? What is the probability of the 2nd card bei
how do you calculate the circumference of a circle
solve for t d=(1/2) at^2
When a Doctor practices Paediatrics, what sort of patients does he have ?
Solve: –3 + x = 7That is the whole problem so adding words to make this be seen
When a Doctor practices Paediatrics, what sort of patients does he have ?
How does the modern era differ from the post-classical era?
how do you calculate the circumference of a circle
solve for t d=(1/2) at^2