Introduction to Sets

  • + 0 comments

    def average(array): # your code goes here n_values = set(array) return(sum(n_values)/len(n_values))

    if name == 'main': n = int(input()) arr = list(map(int, input().split())) result = average(arr) print(result)