This function prints multiple values, which are indices of a string z, however i want to store those values, and using return will terminate the function leaving me with only the first value of several.
def find(a):
index=a
while index<len(z)-1:
if z[index]=="T":
for index in range (index+20,index+30):
if z[index]=="A" and z[index+1]=="G" and z[index+2]=="T":
a=index
print a
index=index+1