+ 1
So we can go back to old school maths BODMAS Now B is bracket so we solve it first Now in the first inner bracket, you have 3 ** 2 = 9 Then we replace the result so print((9) // 2) Now we can go ahead with the division Mind you / is for float output and // is for int output So 9 divided by 2 gives 4.5 but since we expect int output you get 4
9th Apr 2022, 11:45 AM
Faisal Issaka
Faisal Issaka - avatar