apps = [("Music", 200, 50), ("AI", 500, 90), ("Weather", 100, 30)]
limit = 600
total = 0
answer = 0

for i in range(len(apps)-1):
    if apps[i][1] + apps[i+1][1] == limit:
        answer = apps[i][2] + apps[i+1][2]      
    else:
        total = 0

print(answer)

Embed on website

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