Pls tell me why is it failing testcases
Hey @sneha23, I have made a pictorial representation of your code. The issue you are facing is in your else if and else condition.
This will help you in understanding this algorithm better

Keep learning
made the changes still not working
Oh @sneha23, there’s an issue of indentation. You are printing your statement in while loop
That’s why you are not getting your answer accepted. Always keep this in mind, never ignore indentation
it was a silly mistake but that’s fine for a beginner
keep it up
thankyou so much but it is still failing testcase 1
can u figure out wht???
HERE YOU GO!!!
Hey @sneha23, i have seen . your code gives correct output for testcase 1, check it again . It might be some other test case number
i m really sorry it was testcase 0
one more thing on what basis are these test cases been classified i mean how do i get to know where is the error
Ohhho @sneha23 , in line number 39 you are doing pass=1 you should do pass==1
you are assigning pass to 1 
Now correct it asap
Moreover, students are not allowed to have access for test cases because if we will provide you with it. You won’t figure and ideal approach whereas if you get struck then you always have TA support for that 
done.
thankyou so much!!!
closingthe doubt:)

