Introduction to Sets

  • + 0 comments
    def average(array):
        # your code goes here
        arr=set(array)
        total = 0
        
        for i in arr:
            total += i
            
        total = total/len(arr)
        return total