Member-only story
Coding a Grading Program in Python
Being a teacher or tutor to someone in a particular subject is a challenging accomplishment. It requires dedication and focus, empathy, and a firm hand. It is also a demanding task to grade a student based on their performance in class. Sometimes, try as they might the students may not understand where they stand in the class, a lot of teachers will use percentages which not every student is great at. So how do you make it easier for students to see their scores in class? Change the percentages into something that is human-readable and easy to understand.
In this tutorial, I am going to build a grading program that will change the percentage into human-readable content using Python. I will be using these particular scoring criteria as a blueprint for the code that is going to be built in this tutorial. The following goes like this:
Scores 91–100: Grade = “Outstanding”
Scores 81–90: Grade = “Exceeds Expectations”
Scores 71–80: Grade = “Acceptable”
Scores 70 or lower: Grade = “Fail”
As we all know, Python is a very flexible dynamic language making it easy to basically program anything. In this tutorial, you will learn how to create an empty dictionary, and loop through a dictionary using a for loop. Finally, the new dictionary will be filled with the student…




