Question: 
Write a function to search a literals string in a string and also find the location within the original string where the pattern occurs.


Model's Code:
def search_literal(pattern, text):
    start = text.find(pattern)
    if start != -1:
        return start, start + len(pattern)
    return None



Sample Correct Code:
import re
def search_literal(pattern,text):
 match = re.search(pattern, text)
 s = match.start()
 e = match.end()
 return (s, e)


Asserts:
assert search_literal('python','python programming language')==(0,6)
assert search_literal('programming','python programming language')==(7,18)
assert search_literal('language','python programming language')==(19,27)


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 534 of 974: 394/534 (73.78277153558052%): success