Explain assert statement with example?

   Explain assert statement with example?
Ans.-Python provides the assert statement to check if a given logical expression is true or false. Program execution proceed only if the expression is true and raise the Assertion Error when it is false.

AssersionError:- The assert statement can optionally include an error message string which gets displayed along with the AssertionError.