def clean_parsons_lines(code_lines):
    """Return list of lines of code, stripped of whitespace.

    Args:
        code (list): Code to be cleaned.

    Returns:
        List of cleaned code.
    """
    clean_lines = list()
    for line in code_lines:
        stripped_line = line.strip()
        if stripped_line:
            clean_lines.append(stripped_line)
    return clean_lines