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 by using regex.


Model's Code:
import re

def find_literals(original_string, pattern):
    match = re.search(re.escape(pattern), original_string)
    if match:
        return (match.group(), match.start(), match.end())
    return None



Sample Correct Code:
import re
pattern = 'fox'
text = 'The quick brown fox jumps over the lazy dog.'
def find_literals(text, pattern):
  match = re.search(pattern, text)
  s = match.start()
  e = match.end()
  return (match.re.pattern, s, e)


Asserts:
assert find_literals('The quick brown fox jumps over the lazy dog.', 'fox') == ('fox', 16, 19)
assert find_literals('Its been a very crazy procedure right', 'crazy') == ('crazy', 16, 21)
assert find_literals('Hardest choices required strongest will', 'will') == ('will', 35, 39)


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

Test 607 of 974: 452/607 (74.46457990115321%): success