Beginner Python
Q3 / 101

What data type is the result of 7 / 2 in Python 3?

Correct! Well done.

Incorrect.

The correct answer is B) float

B

Correct Answer

float

Explanation

In Python 3, / always returns a float (3.5). Use // for integer (floor) division.

Progress
3/101