max_value = 0
temp = 0
best_combo = ()

for x in range(1,10):
    for y in range(1,10):
        for z in range(1,10):
            if x+y+z == 15:
                temp = x*y*z
                if max_value < temp:
                    max_value = temp
                    best_combo = (x,y,z)
                    
print(best_combo)

Embed on website

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