Question: 6 . 3 8 LAB: List multiples Write a function, listmultiples, that takes a list, values, and a number as parameters and then multiplies each
LAB: List multiples
Write a function, listmultiples, that takes a list, values, and a number as parameters and then multiplies each element of the list by
the given number and returns this new list.
Use a while loop to go through the list and update the values. see p for multiply function example
Ex: If the values list is:
and the number is the returned list would be:
You do not need a main function or to print anything. Only write the function with a returned list.
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
