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


Model's Code:
def largest_pos(lst):
    return max((x for x in lst if x > 0), default=None)



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


Asserts:
assert largest_pos([1,2,3,4,-1]) == 4
assert largest_pos([0,1,2,-5,-1,6]) == 6
assert largest_pos([0,0,1,0]) == 1


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

Test 517 of 974: 381/517 (73.69439071566731%): success