Introduction to Sets

  • + 3 comments

    why are we not getting the output when it is given as return sum(array)/len(array) why is it giving a wrong output? and also what is the difference in giving the code as below return sum(set(array)/len(set(array))