Introduction to Sets

  • + 0 comments
    def average(array):
        # your code goes here
        unique_elements = set(array)
        return round(sum(unique_elements) / len(unique_elements), 3)