## Script (Python) "getGradeFromScore"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=score=None
##title=
##
# $Id: getGradesFromScore.py 2756 2007-11-25 17:52:48Z joachim $

if score is None:
    return None,None
score = int(score)
if score >= 70:
    return ('A',5)
if score >= 60:
    return ('B',4)
if score >= 50:
    return ('C',3)
if score >= 45:
    return ('D',2)
if score >= 40:
    return ('E',1)
return ('F',0)
