Help me in solving AO02 problem

My issue

What logic is behind this question

My code

# Update the '_' in the code below to solve the problem

t = int(input())
for i in range(t):
    N = int(input())
    A = []
    for i in range(N):
        A.append(___)
    #print the array A
    print(___)              
    #print only the elements from array A
    print(*A)               
    A.sort(_________)
    #print the array A sorted in descending order
    print(A)                

Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone

@giet_1227
U have to do it like this

# Solution as follows

t = int(input())
for i in range(t):
    N = int(input())
    A = []
    for i in range(N):
        A.append(i+1)
    #print the array A
    print(A)                
    #print only the elements from array A
    print(*A)               
    #print the array A sorted in descending order
    A.sort(reverse = True)
    print(A)