You are viewing a single comment's thread. Return to all comments →
def average(array): new_array = set(array) avg = sum(new_array)/len(new_array) rounded = round(avg,3) return rounded
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): new_array = set(array) avg = sum(new_array)/len(new_array) rounded = round(avg,3) return rounded