C3W3 Programming Assignment Triplet Cost Error

this is another thread comment which mentions each step value which you can check using print and match with your value and know where you are going wrong