Question: 
Write a function where a string will start with a specific number.


Model's Code:
def match_num(s):
    return s.startswith('5')



Sample Correct Code:
import re
def match_num(string):
    text = re.compile(r"^5")
    if text.match(string):
        return True
    else:
        return False


Asserts:
assert match_num('5-2345861')==True
assert match_num('6-2345861')==False
assert match_num('78910')==False


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

Test 900 of 974: 693/900 (77.0%): success