0
Curious Math Question in Python?
Here is the question ==> Which option is output by this code? >>> (4 + 8) / 2 Now why is my answer wrong when I picked 6 but it is right when I pick 6.0 they mean the same thing.
1 ответ
0
Actually, all normal divisions are float divisions, so they return a float result, hence 6.0
If it was integer division, you would use //