You are viewing a single comment's thread. Return to all comments →
def average(array): arr = list(set(array)) arr.sort() result = sum(arr) / len(arr) return result
Seems like cookies are disabled on this browser, please enable them to open this website
Introduction to Sets
You are viewing a single comment's thread. Return to all comments →
def average(array): arr = list(set(array)) arr.sort() result = sum(arr) / len(arr) return result