What will be the output of the following code ?
print((5<10) and(10<5)
Answers
Answered by
0
Answer:
The output of this code will be False.
Explanation:
The and operator evaluates to True only when both its operands are True. In this case, the first operand (5 < 10) evaluates to True, but the second operand (10 < 5) evaluates to False. Therefore, the overall expression evaluates to False.
In other words, the code is checking if both 5 is less than 10 and if 10 is less than 5, which is impossible. Since the second condition is false, the entire expression evaluates to False.
More questions and answers
https://brainly.in/question/512948?referrer=searchResults
https://brainly.in/question/8170335?referrer=searchResults
#SPJ1
Similar questions
Accountancy,
3 months ago
Business Studies,
3 months ago
Science,
3 months ago
English,
6 months ago