Hello, in my final part I tried to write the standard deviation function as follows:
def grades_std_deviation(scores): variance=grades_variance(scores) std_dev= variance**0.5 return std_dev
However, it returns float not iterable
However, when I used the function specified in part 8 (return variance**0.5) and run the function as
it works fine.
I’m confused because isn’t the grades_variance(grades) a float data as well? why is that working when a float computed from within the function is not? Can you suggest a possible alternative for st_dev function to be independent (as in, can work with the grades input directly)?