subject

Write a function named square_list that takes as a parameter a list and replaces each value with the square of that value. It should not return anything - it should mutate the original list. For example, if the original list is

[7, -3, 12, 9]
then after calling the function it should be

[49, 9, 144, 81].

Code must be in python, not C++ or Java.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
question
Computers and Technology, 25.06.2019 17:30
Compete the sentence with the phrase that makes the proof statement true. c is the midpoint to segment ae segment ab is congruent to segment de length ac is equal to length ab plus length bc
Answers: 2
You know the right answer?
Write a function named square_list that takes as a parameter a list and replaces each value with the...
Questions
Questions on the website: 13722367