Question: 
Write a function that matches a string that has an a followed by zero or more b's by using regex.


Model's Code:
import re

def text_match(text):
    if re.match(r'a(b*)', text):
        return 'Found a match!'
    else:
        return 'Not matched!'



Sample Correct Code:
import re
def text_match(text):
        patterns = 'ab*?'
        if re.search(patterns,  text):
                return ('Found a match!')
        else:
                return ('Not matched!')


Asserts:
assert text_match("msb") == 'Not matched!'
assert text_match("a0c") == 'Found a match!'
assert text_match("abbc") == 'Found a match!'


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

Test 930 of 974: 713/930 (76.66666666666667%): success