Why I am not getting 100% which cases are wrong

Hey @shivammishra2408, can you please share your online IDE link ? It is difficult to debug your code without indentation.

Thanks :slight_smile:

Hey @shivammishra2408, your code is absolutely correct. Great work !
There’s just a small mistake. When the sequence becomes false, you need to break the execution of the code further. As once the sequence gives the output as false, there is no need to take more input from the user. Just add two break statements after making hua = 1 like this :

if e==p:
  print('false')
  hua=1
  break
if e<p and inc==1:
  print('false')
  hua=1
  break

This should give you the correct results !

I hope this helps you :slight_smile:
Happy coding :slight_smile:

thanks ya. it worked

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.