Boolean Assignment
Boolean Assignment
print(not True)
#----------------------------------------->Output is False
print(not False)
#----------------------------------------->Output is True
Q. What is the output of expression inside the print statement. Cross
check before running the program.
a = True
b = True
print(a is b) #True or False? #
print(a is not b) #True or False?
a = False
b = F alse
print(a is b) #True or False?
print(a is not b) #True or False?