Help me in solving CS02A problem

My issue

:lying_face: :face_with_spiral_eyes:
IndentationError: unexpected indent in line 8

My code

# Update the program below to solve the problem

t = int(input())           
for i in range(t):
    X, Y, A = map(int, input().split())
    if A < X:
      print("No")
        elif A > Y:
           print("No")
         else:
           print("Yes") 

Learning course: Solve Programming problems using Python
Problem Link: Practice problem - Age Limit Practice Problem in Solve Programming problems using Python - CodeChef

Python coding uses indentation as part of its syntax. This is, having exactly 4 spaces to the right to refer to a conditional structure or a function. Say:

For a conditional structure:

if condition:
    print("Yes")

For a function:

def fun(p):
    return "hello"

Big story short, you need 4 spaces to the right after using the two points “:” symbol to indicate what is included in that.

That being said:

t = int(input())           
for i in range(t):
    X, Y, A = map(int, input().split())
    if A < X:
        print("No")
    elif A > Y:
        print("No")
    else:
        print("Yes")