Question: 
Write a function to find the maximum value in a given heterogeneous list.


Model's Code:
def max_val(lst):
    return max(x for x in lst if isinstance(x, (int, float)))



Sample Correct Code:
def max_val(listval):
     max_val = max(i for i in listval if isinstance(i, int)) 
     return(max_val)


Asserts:
assert max_val(['Python', 3, 2, 4, 5, 'version'])==5
assert max_val(['Python', 15, 20, 25])==25
assert max_val(['Python', 30, 20, 40, 50, 'version'])==50


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

Test 294 of 974: 213/294 (72.44897959183673%): success