def repr_strength(strength):
 return {REQUIRED: u'Required', STRONG: u'Strong', MEDIUM: u'Medium', WEAK: u'Weak'}[strength]

def repr_strength ( strength ) : return { REQUIRED : u'Required' , STRONG : u'Strong' , MEDIUM : u'Medium' , WEAK : u'Weak' } [ strength ]
convert a numerical strength constant into a human-readable value .