<human>:  Finding the sum of a nested list of ints
<bot>: Here is some code to sum all elements of nested list `L`

sum(sum(i) if isinstance(i, list) else i for i in L)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.