Q. Int('a') produces error but following expression having int('a') in it, does not return error. Why?


 len(‘a’) 2 or int('a')


Answer =
 
Because first expression is True , so or operator will not check next operands .
so for this expression will not produce error .

You can understand by watching videos -----



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post