Python Programming - Operators - Discussion
Discussion Forum : Operators - General Questions (Q.No. 19)
19.
What is the result of the following expression in Python:
7 != '7'
?Answer: Option
Explanation:
The expression 7 != '7'
compares the integer value 7
with the string value'7'
to check if they are not equal.
In Python, values of different types are considered not equal. Therefore, the result of this expression is True
.
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