def render_status(self, verse, span):
        """Compute the status of verse in question.

        Each verse has an optional status to show on the
        TEACH page. This method figures out what to show
        (if anything) and decides what the verse hint is."""
        if verse.ready is True:
            right, total, text = verse.value
            if right == total:
                status = span.format('#0A0', 'You know this verse perfectly!')
            elif right > 0:
                string = 'You already know {}% of this verse.'
                correct = string.format(int(100 * right / total))
                status = span.format('#00A', correct)
            else:
                status = span.format('#00A', 'Here is a hint for this verse.')
        else:
            text = verse.hint
            status = span.format('#A00', 'Your answer took too long to check!')
        return text, status
Compute the status of verse in question.

        Each verse has an optional status to show on the
        TEACH page. This method figures out what to show
        (if anything) and decides what the verse hint is.
recipes/Python/577043_Bible_Verse_Quiz__VerseMatchpy/recipe-577043.py