Nums = [10, 40, 30, 60, 30, 20, 60, 30, 40, 50] 
count  = 0
ans = {}

for i in range(len(Nums)):
    count += Nums[i]

for i in Nums:
    if i in ans:
        ans[i] += 1
    else:
        ans[i] = 1


print(count // len(Nums))
print(max(ans,key = ans.get))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: