person = [2, 3, 1]
total = 0
K = 3

for i in range(len(person)):
    total += person[i]

total = total // K

print(total)

Embed on website

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