title: How can i sum the value in list with for loop in python?
body: <p>i try to make multiple and then the result multiple will be the sum. but i got error in my code.</p>
  <pre><code>ds = [1,2,3,4,5]
  for i in ds:
      print(sum(ds[i]*i))
  </code></pre>
  <p>expected output</p>
  <pre><code>55
  </code></pre>