title: Absolute value for sum of a list
body: <p>I need to get the absolute value of each element of a list with <strong>n</strong> elements and sum all of them (to get a positive number or zero). I can't use any library because its a school work.</p>
  
  <p>I have tried using the logic below , but one only gets me the absolute value for the sum and the other format is not valid.</p>
  
  <p><code>p = [list]</code></p>
  
  <hr>
  
  <p><code>a=sum(abs(p))</code></p>
  
  <p>and also</p>
  
  <p><code>p = [list]</code></p>
  
  <hr>
  
  <p><code>a = abs(sum(p)</code></p>
  
  <p>Thanks</p>