ropes = [10, 15] ropes.sort(reverse=True) max_weight = 0 for i in range(len(ropes)): max_weight = max(max_weight, ropes[i] * (i + 1)) print(max_weight)
To embed this project on your website, copy the following code and paste it into your website's HTML: