Introduction to Sets

  • + 2 comments

    Why def average(array): # your code goes here

    return sum(set(array))/len(set(array)) 
    and
    def average(array):
    # your code goes here
    
    return sum(array)/len(array)
    
    where array is list gives different value?