Python Programming - Operators - Discussion

Discussion Forum : Operators - General Questions (Q.No. 13)
13.
What is the result of the following code?
a = 8
b = 3
print(a / b)
2.6666666666666665
2.6666666666666667
2.67
2.6
Answer: Option
Explanation:
The division operator returns a float value in Python 3.x. In this case, a / b is equal to 2.6666666666666665.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.