If I take out the first if statement this code works fine. However, I need to set boundaries. I want to make it that the try only happens if the input is between 0 and 1. Can anyone please tell me where I'm going wrong?
try:  
    inp = raw_input ("Enter Score:")
    grade = float (inp)
    if 0 < grade < 1:        
        pass
    if grade >= 0.9: 
        print "A"
    elif grade >= 0.8:
        print "B"
    elif grade >= 0.7:
        print "C"
    elif grade >= 0.6:
        print "D"
    elif grade <= 0.6:
        print "F"
except: 
    print "please enter a value between 0 and 1"
 
    