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


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



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



Asserts:
assert text_match_one("ac")==('Not matched!')
assert text_match_one("dc")==('Not matched!')
assert text_match_one("abba")==('Found a match!')


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

Test 434 of 974: 317/434 (73.04147465437788%): success