First of all, why don’t you have parenthesis around your print statements?
Secondly like @tgrtim said, raw_input
and similar commands may be disabled for some lessons, so you should just try doing it the normal way (to pass the module first):
grade = 'number'
score(grade)
And after taking a look at your code here is the fixed version:
def score(grade):
if (grade >= 90):
print("Excellent")
elif (grade <= 89 and grade >= 80):
print("Very Good ")
elif (grade <= 79 and grade >= 70):
print("Good")
elif (grade <= 69 and grade >= 65):
print("Satisfactory")
elif (grade < 65 and grade >= 60):
print("Can do Better")
else :
print("Improvement Needed!")
grade = int(raw_input("Enter your Grade"))
score(grade)
This code would probably not work in Codecademy (because of the input), however it works fine elsewhere if you really want to use input.