def add_score(scores):
name = input("Enter a name: ")
score = int(input("Enter a score: "))
scores[name] = score
def average_score(scores):
total = 0
for key, value in scores.items():
total = total + value
return total / len(scores)
def main():
scores = {}
for i in range(4):
add_score(scores)
print(average_score(scores))
main()