------
## 最终结论
```python
def max_val(lst):
    numeric_values = [x for x in lst if isinstance(x, (int, float))]
    return max(numeric_values)

# Test cases
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
```