This is a grade determination python script. Can anyone tell me why this gives an error when ran?

From the looks of it, you need to get rid of the spaces before the if, elif, and else statement along with the code blocks inside those statements. They're all improperly indented.