Python Code For Grading System