Question
Write the statement1 to complete the code. The given code will return the sum of the natural number using recursive function.

Answer

list[0] + sum(list[1:])

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free