what is the value of the following expression? float(32//6+5/5)
Answers
Answered by
1
Answer:The answer is 6 .
Explanation:32/6=5
5/5=1
5+1=6
Answered by
3
What is float?
==> Floats are decimal numbers.
6.0
- Precedence is division, then multiplication, then addition and subtraction.
- 32 // 6 = 5 ==> // is used for float division.
- 5 / 5 = 1 ==> / is used for normal division
- 5 + 1 = 6 ==> Since we've got both LHS and RHS.
- Float() ==> Converts integer to float. So 6 changes to 6.0
I hope that I have explained you all the steps properly and correctly, sorry if something is wrong or missing...
Hope This Helps...
Similar questions