def createFrames(dnaSeq):
    frames = [[], [], []]
    for i in range(0, 3):
        frame = frames[i]
        for j in range(0, len(dnaSeq), 3):
            if ((i + j) < (len(dnaSeq) - 2)):
                triplet = dnaSeq[(i + j):((i + j) + 3)]
                frame.append(triplet)
def createFrames(dnaSeq):
    frames = [[], [], []]
    for i in range(0, 3):
        frame = frames[i]
        for j in range(0, len(dnaSeq), 3):
            if ((i + j) < (len(dnaSeq) - 2)):
                triplet = dnaSeq[(i + j):((i + j) + 3)]
                frame.append(triplet)