scores = [80, 90, 70]
answer = 0

for score in scores:
    if score < 40:
        print("False")
        break
    answer += score
else:
    answer //= len(scores)
    print(answer)

Embed on website

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