Question: 
Write a python function to check whether a string has atleast one letter and one number.


Model's Code:
def check_String(s):
    return any(c.isalpha() for c in s) and any(c.isdigit() for c in s)



Sample Correct Code:
def check_String(str): 
    flag_l = False
    flag_n = False
    for i in str: 
        if i.isalpha(): 
            flag_l = True  
        if i.isdigit(): 
            flag_n = True
    return flag_l and flag_n 


Asserts:
assert check_String('thishasboth29') == True
assert check_String('python') == False
assert check_String ('string') == False


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

Test 192 of 974: 140/192 (72.91666666666666%): success