def tolist(input_string, splitby, export_type=int):
    """
    This function is used to divide list that has been imported as a string into an actual list. For example, if the
    import is '1;2;3;4', the output is [1,2,3,4]

    :param input_string: string value, consisting of divided numbers
    :param splitby: punctuation mark used to divide the numbers
    'param expert_type: type of the variables in the final list. standard = integer

    :return: list of values
    """

    if type(input_string) == str:
        return list(map(export_type, input_string.split(splitby)))
    else:
        str_variable = str(int(input_string))
        return list(map(export_type, str_variable.split(splitby)))