Question: # 2. Write a function to make a new list with each element of the old list # multiplied by volume. This will have the
# 2. Write a function to make a new list with each element of the old list # multiplied by volume. This will have the effect of making the sound louder. # If original_samples is [1,2,3] and volume is 2, then this should return a new list # [2,4,6]. You must use a loop to get the elements in the original list and build # up a new list in that loop. Return the new list. def make_louder_samples(original_samples, volume): # Add code to make the function work as specified. return [] # Replace this line with your own code
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
