def get_all_sub_districts(page_start, page_end):
    all_sub_districts = []
    for i in range(page_start, (page_end + 1)):
        all_sub_districts.extend(get_sub_districts_data(get_table_list(i)))

    def remove_spaces(str_no):
        if (type(str_no) == str):
            return str_no.replace(' ', '')
        else:
            return str_no
    all_sub_districts = [[x[0], remove_spaces(x[1]), remove_spaces(x[2])] for x in all_sub_districts]
    return all_sub_districts
def get_all_sub_districts(page_start, page_end):
    all_sub_districts = []
    for i in range(page_start, (page_end + 1)):
        all_sub_districts.extend(get_sub_districts_data(get_table_list(i)))

    def remove_spaces(str_no):
        if (type(str_no) == str):
            return str_no.replace(' ', )
        else:
            return str_no
    all_sub_districts = [[x[0], remove_spaces(x[1]), remove_spaces(x[2])] for x in all_sub_districts]
    return all_sub_districts