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

6.38 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.268-6.4 for multiply function example)
Ex: If the values list is:
2,3,5,7,11
and the number is 5, the returned list would be:
10,15,25,35,55
You do not need a main function or to print anything. Only write the function with a returned list.
 6.38 LAB: List multiples Write a function, listmultiples, that takes a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!