interpreter.py
def segmentize(arg):#argument is source
    '''
    The purpose of this function is to turn the source into segments of
    length 5 because each instruction in a Turing machine is of the following
    form:
    <current state, current symbol, next symbol, direction, next state>
    '''
    frame = []
    while True:
        frame = frame+[arg[:5]];arg = arg[5:]
        if arg == '':
            break
    return frame

    The purpose of this function is to turn the source into segments of
    length 5 because each instruction in a Turing machine is of the following
    form:
    <current state, current symbol, next symbol, direction, next state>
    
The purpose of this function is to turn the source into segments of
length 5 because each instruction in a Turing machine is of the following
form:

The purpose of this function is to turn the source into segments of length 5 because each instruction in a Turing machine is of the following form :
def segmentize(arg):
    frame = []
    while True:
        frame = frame+[arg[:5]];arg = arg[5:]
        if arg == '':
            break
    return frame
def segmentize ( arg ) : frame = [ ] while True : frame = frame + [ arg [ : 5 ] ] ; arg = arg [ 5 : ] if arg == '' : break return frame
The purpose of this function is to turn the source into segments of
length 5 because each instruction in a Turing machine is of the following
form:
<current state, current symbol, next symbol, direction, next state>
The purpose of this function is to turn the source into segments of length 5 because each instruction in a Turing machine is of the following form : <current state current symbol next symbol direction next state >
#argument is source '''
    The purpose of this function is to turn the source into segments of
    length 5 because each instruction in a Turing machine is of the following
    form:
    <current state, current symbol, next symbol, direction, next state>
    '''
arg