Question: Keep getting expected an indented block error, been looking at this code for over 30 minutes and can not see where I am making this

Keep getting expected an indented block error, been looking at this code for over 30 minutes and can not see where I am making this error. Any help would be great to get this code to work.

#function to determine the grade based on the score

def determine_grade(score):

if(score >=0 and score <= 60):

print "your grade is an F"

if(score >=60 and score <=69):

print "your grade is a D"

if(score >=70 and score <=79):

print "your grade is a C"

if(score >=80 and score <=89):

print "your grade is a B"

if(score >=90 and score<=100):

print "your grade is an A"

else:

print 'Error: you have not entered a number between 0 and 100.'

return score

main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!