sequence is a string, and gene is the the word that i gotta find..
im new to python.. and so far i got this:
the list always ends with a -1 at the very end...how do i get rid of that..
def find_genes(gene,sequence):
list= []
count = sequence.count(gene)
find = sequence.find(gene)
list.append(find)
while find > -1:
find = sequence.find(gene,find+1)
list.append(find)
return count,list