Regarding test cases run

Sir can you please give me an idea about why the test cases are coming wrong?

Hello @punetha.anmol001 i have corrected your code and commeted the mistake:


Happy Learning!!

Got it sir, btw what do you think why lb==n was getting wrong? It gives n only tho

@punetha.anmol001 i think first we should check whether the element is present or not.

Alright, thank you !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.