diff --git a/Python/04. Sets/014. Introduction to Sets b/Python/04. Sets/014. Introduction to Sets new file mode 100644 index 0000000..608b717 --- /dev/null +++ b/Python/04. Sets/014. Introduction to Sets @@ -0,0 +1,9 @@ +def average(array): + distinct_heights = set(array) + return round(sum(distinct_heights) / len(distinct_heights), 3) + +if __name__ == '__main__': + n = int(input()) + arr = list(map(int, input().split())) + result = average(arr) + print(result)