def format_output(decryption, verbose):
    """Return the formatted output based on verbosity"""
    if verbose:
        return "{0}\nkey: {1}\nscore: {2}".format(''.join(decryption.plaintext), decryption.key, decryption.score)
    return ''.join(decryption.plaintext)