Question: Examine the function multiply _ list _ by and read the docstring. This function takes each element in a list, multiplies it by a specified
Examine the function multiplylistby and read the docstring. This function takes each element in a list, multiplies it by a specified multiplier, and puts the results in a new list which is returned. For example, calling multiplylistbymylist, should return the list
Fill in the missing code in multiplylistby Remember that you want to iterate over each element of the argument alist, and append to the new list the value of that element multiplied by multiplier.
Before testing your code for correctness with the Test Code button below, execute run exercise.py in the IPython interpreter and evaluate multiplylistbymylist, If there are errors, use the information from them to debug your code.
Reset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
