Question: 
Write a function that matches a string that has an 'a' followed by anything, ending in 'b'.


Model's Code:
def text_starta_endb(text):
    import re
    if re.match(r'a.*b$', text):
        return 'Found a match!'
    else:
        return 'Not matched!'



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


Asserts:
assert text_starta_endb("aabbbb")==('Found a match!')
assert text_starta_endb("aabAbbbc")==('Not matched!')
assert text_starta_endb("accddbbjjj")==('Not matched!')


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

Test 794 of 974: 603/794 (75.94458438287154%): success