title: Function statement() that outputs the sum of the deposit and the sum of the withdraw
body: <p>I'm having trouble with this question:</p>
  
  <p>Write a function statement() that takes as input a list of floating point numbers, with positive numbers representing deposits to and negative numbers representing withdrawals from a bank account. Your function should return a list of two floating point number; the first will be the sum of the deposits and the second will be the sum of the withdrawals</p>
  
  <p>code I have:
  import math</p>
  
  <pre><code>def statement (bank):
  
  deposit = []
  withdrawal = []
  i = 0
      for i in range(1, len(bank)):
  
          if bank[i] &gt;= 0:
              deposit.append(bank[i])
  
          elif bank[i] &lt; 0:
              withdrawal.append(bank[i])
  
      print (sum(deposit, withdrawal))
  
  statement([30.95, -15.67, 45.56, -55.00, 43.78])
  </code></pre>
  
  <p>The problem is that I can't add the float from a list. How can i do that? Thank you</p>