Question: Write a function called distancefromtarget that takes 2 parameters a filename and a target number and returns a list containing the result of the following

Write a function called distancefromtarget that takes 2 parameters a filename and a target number and returns a list containing the result of the following subtractions the target number minus the sum of the numbers on each line The values in the list should be the same order as the rows in the file The filename will refer to a CSV comma separated value file containing numbers separated by commas each line can contain a different amount of values

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!