def status(cert):
    """Return a string with the status of the certificate."""
    value = 'Valid'
    if cert.is_revoked:
        value = 'Revoked'
    elif cert.is_expired:
        value = 'Expired'
    return value