Skip to content Skip to sidebar Skip to footer

What The Code To Use In # Complete This Function With Recursion In Lines 4

# TODO: 2. Create a function that counts the sum of all the numbers in a list below number = [1,2,3,4,5] # Use this list as input def hitung_total(listKu): # Complete this fu

Solution 1:

To sum up all the numbers in the list you could do something like this:

number = [1, 2, 3, 4, 5]

result = sum(number)

Post a Comment for "What The Code To Use In # Complete This Function With Recursion In Lines 4"