def lengths_offsets ( value ) : values = [ ] for item in value . split ( ',' ) : item = int ( item ) values . append ( item ) return values
how to read numbers in a list as integers in python
Split the given comma separated value to multiple integer values .
def lengths_offsets(value):
    """Split the given comma separated value to multiple integer values. """
    values = []
    for item in value.split(','):
        item = int(item)
        values.append(item)
    return values