Answer:
def statement(numbers):
deposits = []
withdrawals = []
for number in numbers:
if number > 0:
deposits.append(number)
if number < 0:
withdrawals.append(number)
return [sum(deposits), sum(withdrawals)]
Step-by-step explanation:
*The code is in Python.
Create a function called statement that takes numbers as a parameter
Inside the function, create two empty lists called deposits and withdrawals. Create a for loop that iterates through the numbers. Inside the loop, if a number is greater than 0, add it to the deposits. If a number is smaller than 0, add it to the withdrawals. When the loop is done, return the sum of the deposits and the sum of the withdrawals (use sum function to sum the numbers in the lists)