from string import*
def subStringMatchExact(target,key,z=[],x=0):
''' Where z begins as an empty set, to become the output tuple and x starts at 0 to hold the beginning search'''
if find(target,key,x)!= -1:
z.append(find(target,key,x))
x = find(target,key,x)+1
subStringMatchExact(target,key,z,x)
return tuple(z)
print subStringMatchExact("SUCCESS","S")