Help me in solving KITCHENSPICE problem

My issue

why is my code showing error

My code

t = int(input())
i = 0
while (i<t):
    x = int(input())
    if x<4:
        print('MILD')
    elif x<=4 and x<7:
        print('MODERATE')
    else:
        print('HOT')
    i = i+1

Problem Link: Spice Level Practice Coding Problem - CodeChef

There Were two mistakes
1.) It is “MEDIUM” not “MODERATE”
2.) Your condition for Medium was a little wrong it should be “x>=4” and yours was “x<=4”

correct code:

cook your dish here

t = int(input())
i = 0
while (i<t):
x = int(input())
if x<4:
print(‘MILD’)
elif x>=4 and x<7:
print(‘MEDIUM’)
else:
print(‘HOT’)
i = i+1