Help me in solving PYARRAYMCQ1 problem

My issue

why not for all {1,2,…,N}
if A[1]>=A[0] what’s the problem?
->it’s also the correct

My code

7008

Learning course: Arrays using Python
Problem Link: Multiple Choice Question Practice Problem in - CodeChef

@krishnagarg120
its correct for 0 based indexing but in this problem they have considered 1 based indexing.

1 Like

Thanks for explaining it’s truly helped me