How to calculate GPA using 'while' and calling another function for calculation
What I'm trying to do is to takes amount of subjets, then takes raw score accordingly, and return GPA and this function will call checkGradePoint during GPA calculation.
Code:
def checkGradePoint(raw):
if raw>100:
score = "Error, raw score exceed max score"
elif raw>80:
score = "4"
elif raw>70:
score = "3"
elif raw>60:
score = "2"