Implement a function to calculate the sum of the numerical values in a nested list. For example :
```python
sum_nested([1, [2, [3, [4]]]]) -> 10
```
def sum_nested(lst):
    total = 0
    for ele in lst:
        total += ele if type(ele) != list else sum_nested(ele)
        
    return total
def sum_nested(lst):
    total = 0
    for ele in lst:
        total += ele if type(ele) != list else sum_nested(ele)
        
    return total