introduction to sets python3 code example Example: introduction to sets python3 def average(array): return sum(set(array))/len(set(array))