def format_output(result):
    """Format output to preserve consistence in output"""

    formatted = "WPM: %-3s " % result["wpm"]
    formatted += "KPS: %-3s " % result["kps"]
    formatted += "Error: %%-3s " % result["error"]
    formatted += "Strokes: %d " % result["strokes"]

    return formatted