Help me in solving RETURNCHANGE problem

My issue

EOF when reading a line error is coming

My code

# cook your dish here
t = int(input())
def Difficulty_rating(d):
    for i in range(1,len(d)):
        if (d[i] < d[i-1]):    
            return "No"
    return "Yes"
for _ in range(t):
    n = int(input())
    d = list(map(int, input().split()))
    print(Difficulty_rating(d))
    

Learning course: Number theory
Problem Link: CodeChef: Practical coding for everyone

Hi, @giet_1227,
The problem link you have given opens the whole problem set of that section, so it’s hard to check which problem you are specifically talking about. However, you can check the input format and debug; the second line of input that you are assigning to n, might not be an integer but a list. So please check your input statement.
If you are still stuck, please mention the specific problem name or link.