def filter_on_provided_extension(input_list, ext):
    """Takes in a list of files,
    returns filtered list of files that have the correct extension """
    temp_list = []
    for item in input_list:
        if item.endswith(ext):
            temp_list.append(item)
    return temp_list