Question: 
Write a python function to find the largest negative number from the given list.


Model's Code:
def largest_neg(numbers):
    negatives = [num for num in numbers if num < 0]
    return max(negatives) if negatives else None



Sample Correct Code:
def largest_neg(list1): 
    max = list1[0] 
    for x in list1: 
        if x < max : 
             max = x  
    return max


Asserts:
assert largest_neg([1,2,3,-4,-6]) == -6
assert largest_neg([1,2,3,-8,-9]) == -9
assert largest_neg([1,2,3,4,-1]) == -1


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 443 of 974: 322/443 (72.686230248307%): failed