Question: 
Write a function that matches a word containing 'z'.


Model's Code:
def text_match_wordz(text):
    return 'Found a match!' if 'z' in text else 'Not matched!'



Sample Correct Code:
import re
def text_match_wordz(text):
        patterns = '\w*z.\w*'
        if re.search(patterns,  text):
                return 'Found a match!'
        else:
                return('Not matched!')


Asserts:
assert text_match_wordz("pythonz.")==('Found a match!')
assert text_match_wordz("xyz.")==('Found a match!')
assert text_match_wordz("  lang  .")==('Not matched!')


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

Test 454 of 974: 331/454 (72.90748898678414%): success