requests = [120, 110, 140, 150]
total_budget = 485
count = len(requests)
average = total_budget / count
answer = 0
for i in requests:
if i <= average:
total_budget -= i
count -= 1
answer = total_budget // count
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: