What is the output of the following code ?
print(not(7 & 7)) print(not(9 > 4))
True False
True True
False True
False False
7 & 7 results in 7 . Here 7 is true value of integer type if considered for boolean. so not(7) results in False 9 > 4results in True and not(True)results in False
7 & 7
not(7)
9 > 4
not(True)
Comment here: