def first_continuous_indexesnot_slice(ol,value):
length = ol.__len__()<EOL>begin = None<EOL>slice = []<EOL>for i in range(<NUM_LIT:0>,length):<EOL><INDENT>if(not(ol[i]==value)):<EOL><INDENT>begin = i<EOL>break<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if(begin == None):<EOL><INDENT>return(None)<EOL><DEDENT>else:<EOL><INDENT>slice.append(begin)<EOL>for i in range(begin+<NUM_LIT:1>,length):<EOL><INDENT>if(not(ol[i]==value)):<EOL><INDENT>slice.append(i)<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>return(slice)<EOL>
from elist.elist import *
ol = ["a",0,1,"a","a",2,3,"a",4,"a","a","a",5]
first_continuous_indexesnot_slice(ol,"a")