Code :
print(True not True)
Output:
False
Explanation:
True not True: This expression involves two boolean values (True and True) and the boolean operator not.
not operator: The not operator inverts the truth value of a boolean expression. It means "the opposite of" or "the negation of".
Evaluation:
True is a boolean value representing truth.
not True means "the opposite of True", which is False.
print(False): The print() function outputs the value False to the console.
Therefore, the code prints False because the expression True not True evaluates to False due to the negation of the boolean value True by the not operator.
0 Comments:
Post a Comment