from collections import Counter
num = [10, 40, 30, 60, 30, 20, 60, 30, 40, 50]
num_count = len(num)
average = 0
arr = Counter(num).most_common(1)[0][0]
for i in num:
average += i
print(average // num_count)
print(arr)
To embed this project on your website, copy the following code and paste it into your website's HTML: