Python Programming - Operators - Discussion
Discussion Forum : Operators - General Questions (Q.No. 15)
15.
What is the result of the expression
5 == "5"
?Answer: Option
Explanation:
The
==
operator in Python is used to compare the equality of two operands. In this case, the operands are 5 and "5". Although they look similar, they are not equal because one is an integer and the other is a string. Therefore, the result of 5 == "5"
is False
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers