cars = [110, 98, 125, 148, 120, 112, 89]
speed = 100
answer = 0
for x in cars:
if x >= speed * 11 / 10 and x < speed * 12 / 10:
answer += 3
elif x >= speed * 12 / 10 and x < speed * 13 / 10:
answer += 5
elif x >= speed * 13 / 10:
answer += 7
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: