← Questions

Nested list weight sum

0
MetaCodingLast asked Feb 2026

A nested list holds integers and other nested lists. Return the sum of every integer multiplied by its depth (integers in the outer list have depth 1).

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding