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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started