title: how do i resolve this simple for loop issue, im stumped on this type error issue
body: <pre class="lang-py prettyprint-override"><code>cost = [1.25, 3.00, 2.00, 4.75]
  items = [&quot;chocolate bar&quot;, &quot;cone&quot;, &quot;medium float&quot;, &quot;ice cream sunday&quot;]
  
  print(&quot;Cost  -  Product&quot;)
  
  i=0
  
  for i in range(len(cost)):
      print(cost[i] + &quot; - &quot; + items[i])
  </code></pre>
  <p>When I run this, something in my for loop breaks, I have tried to understand this and have failed, I'm a beginner and I was assigned the task of putting together something with the 'for loop' This i supposed to be a simple question so I was wondering if someone could explain why it fails and what  is best practice for something such as this.</p>
  <p>my output ::</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Cost  -  Product
  Traceback (most recent call last):
    File "main.py", line 9, in &lt;module&gt;
      print(cost[i] + " - " + items[i])
  TypeError: unsupported operand type(s) for +: 'float' and 'str'
   </code></pre>
  </div>
  </div>
  </p>
  <p>Thanks to all for any help!</p>