Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started