My issue
t = int(input())
while t > 0:
n = int(input())
d = list(map(int, input().split()))
# Your code goes here
t -= 1
for i in range(n) :
if d[i+1]<=d[i]:
print("Yes")
i +=1
else :
print("No")
how ?
My code
t = int(input())
while t > 0:
n = int(input())
d = list(map(int, input().split()))
# Your code goes here
t -= 1
for i in range(n) :
if d[i+1]<=d[i]:
print("Yes")
i +=1
else :
print("No")
Learning course: Arrays using Python
Problem Link: Difficulty Rating Order Practice Problem in - CodeChef