What is the output of print(7.5 // 2) in Python?
print(7.5 // 2)
Correct answer
C. 3.0
6 views
C. 3.0
6 views
Floor division with a float operand returns a float.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.