Matching strings

Posted by Joy on Stack Overflow See other posts from Stack Overflow or by Joy
Published on 2010-06-18T03:05:40Z Indexed on 2010/06/18 3:13 UTC
Read the original article Hit count: 303

Filed under:

Write the function subStringMatchExact. This function takes two arguments: a target string, and a key string. It should return a tuple of the starting points of matches of the key string in the target string, when indexing starts at 0. Complete the definition for

def subStringMatchExact(target,key): For example, subStringMatchExact("atgacatgcacaagtatgcat","atgc") would return the tuple (5, 15).

© Stack Overflow or respective owner

Related posts about python