Explain not ( boolean NOT ) with an example

Question :

Explain not ( boolean NOT ) with an example

The not operator is used to reverse the logical state of its expression. Logical not returns True if the expression is false and False if the expression is true. For example

If x is True, it returns False.

If x is False, it returns True.

x=True;

not x returns False.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad