Whats wrong in my code please help ?

i wrote a code in python 3 of Grade The Stell but whenever i submit my code it is shows me result = wrong answer but i am getting correct answer for examples given in question. i checked code many times but didn’t find any mistake please please please help me here is my code

for i in range(int(input())):
    h,c,t=map(float,input().strip().split())
    if h>50 and c<0.7 and t>5600:
        print(10)
        continue
    if h>50 and c<0.7 and t<5600:
        print(9)
        continue
    if c<0.7 and t>5600 and h<50:
        print(8)
        continue
    if h>50 and t>5600 and c>0.7:
        print(7)
        continue
    if c<0.7 or t>5600 or h>50:
        print(6)
        continue
    if c>0.7 and t<5600 and h<50:
        print(5)
        continue

you have some problems with logic part…

#first if is correct :slight_smile:

#second if : condition should be t<=5600 instead of t<5600

#third if : condition should be h<=50 instead of h<50

#fourth if : condition should be c>=0.7 instead of c>0.7

#fifth if is correct :slight_smile:

#sixth if : conditions should be c>=0.7 and t<=5600 and h<=50

#it is given that the t>5600 and negation (opposite) of that would be
#t<=5600 not t<5600
Same problem exist for other conditions…

Thanks, By The Way i got that after i saw submissions of others.
but thanks for your help :slight_smile:

welcome :slight_smile: