Introduction to Sets

  • + 0 comments
    def average(array):
        lent= len(set(array))
        avg=sum(set(array))/(lent)
        return round(avg,3)
        
    
    if __name__ == '__main__':
        n = int(input())
        arr = list(map(int, input().split()))
        result = average(arr)
        print(result)