def clean_list(input_list):
    """removes unnecessary characters from a list."""
    output_list = list()
    for i in input_list:
        var = i.replace('\n', '')
        output_list.append(var)
    return output_list