Minimum Cost Of Ropes Code In Python