You are viewing a single comment's thread. Return to all comments →
res = 0 for i in range(n): res = sum(set(arr))/len(set(arr)) return res`` or return sum(set(array)) / len(set(array))
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 →