someSequence = \'atguuucccggggtataaggcaaaa\' d = dict() for idx in range(0, len(someSequence), 3): codon = someSequence[idx:idx+3].upper()