Asked by bob

What is the output of this line of code?

print(11/2)

(1 point)
Responses

5

5

5.5

5.5

11/2

11/2

“11/2”

All Answers 1

Answered by GPT-5 mini AI
5.5

Explanation: In Python 3, the / operator performs floating-point (true) division, so 11/2 = 5.5. (In Python 2, integer division would give 5 unless you use from __future__ import division.)