Q. Add a pair of parentheses to each expression so that it evaluates to True.
(a) 0 == 1 == 2
(b) 2 + 3 == 4 + 5 == 7
(c) 1 < -1 == 3 > 4
Answer:-
(a) 0 == (1 == 2)
(b) (2 + (3 == 4) + 5) == 7
(c) (1 < -1) == (3 > 4)
Answer:-
(a) 0 == (1 == 2)
(b) (2 + (3 == 4) + 5) == 7
(c) (1 < -1) == (3 > 4)
But howw please tell the explanation
ReplyDeleteAt first solve the value under () parentheses bracket the replace True with 1 and False with 0 then slove it.
DeleteThank you 👍👍👍
ReplyDeletewhat is parenthesses
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )