Write the output of the following : print((3<6) and (4!=5) or (7>5))
Answers
Answered by
1
Answer:
True.
Explanation:
AND gate returns True when both values entered are True.
OR returns True when either of the entered values are True.
Now considering the question,
(3<6) which is True
(4!=5) which is True
(7>5) which is False
Approach 1: Mathematical
(3<6) and (4!=5) or (7>5)
which translates to True and True or False which can be mathematically represented as,
1.1+0 which is equal to 1 which translates to True.
Approach 2: Circuital
Consider the attachment,
Attachments:
Diabolical:
nice
Similar questions