assume assertion is on
output: assert is on
if at line 3(the expression on assert statement) i is returned as false,then why line4 get printed?
why line 2 matters here(which makes i true) regardless of line3(which returns false)?
Ankit Garg wrote:Arjun please tell the source of the question
.
I don't really understand the question. Line 2 makes the value of i as true, so there will be no assertion error and line 3 will not be executed. This is why line 4 is executed..
hen what is the use of using line 3 for returning any value in assertion