Ok so i'll explain what i have and need to do.
I have a dict with multiple keys but i'll give one for this example and a string made up of A, T, C and G. (the [3:] indicating it should split on the 3 index of the value)
Dict = {'EcoRV': 'GATATC'[3:]}
String = 'AAAAGATATCAAAGATATCAAAA'
Now here is what i need to do. I have to look for the value in the string and split the string on the value of the dict key and end up with a list containing the part where it split, so in this case it would have to split on 'TC' and take the first C and split it and end up with:
List = ['AAAAGATA','TCAAAGATA','TCAAAA']
I tried it with split
but it loses the 'TC'
and I need to keep those.