Question: def score_average(s): (str) -> float Given s, a string representation of a sequence of four floating point numbers formatted as 'number1,number2,number3,number4', e.g., '1.0,12.0,13.0,2.0', calculate
def score_average(s): """ (str) -> float Given s, a string representation of a sequence of four floating point numbers formatted as 'number1,number2,number3,number4', e.g., '1.0,12.0,13.0,2.0', calculate the average and return the average in s as a floating point number. >>> score_average('10.0,20.0,30.0,0.0') 15.0 """
can you please help me write this code in python and show that the test cases work
For the second part of this lab, complete the function score_average (s) which accepts s as a string input parameter and returns the average of the four scores within the string as a float. Output Sample Test Cases Scores 0,50.4,80.3,95.9 99.9,91.3,99.2,98.0 50.0,62.5,31.5,79.0 56.65 97.1 55.75
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
