Python Programming - Tricky Questions - Discussion

Discussion Forum : Tricky Questions - General Questions (Q.No. 23)
23.
What is the output of the following Python code?
x = 5
y = 2
result = x / y
print(result)
2.5
2
2.0
This code will result in an error.
Answer: Option
Explanation:
Division (/) in Python 3 returns a floating-point result.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.