>>> x = ['a','a','a','b','a','a'] >>> c = x.index('b') >>> x[:c] ['a', 'a', 'a'] >>> x[c:] ['b', 'a', 'a']