title: TypeError: can't multiply sequence by non-int of type 'float'
body: <p>I am a noob to Python and have not had any luck figuring this out. I want to be able to keep the tax variable in the code so it would be easily updated should it change. I have experimented with different means but was only able to get it to skip the print tax line and print the same values for the total and subtotal. How do I multiply the tax variable by sum(items_count)? Here is the code:</p>
  
  <pre><code>   items_count = []
  tax = float(.06)
  y = 0
  
  count = raw_input('How many items do you have? ')
  
  while count &gt; 0:
      price = float(raw_input('Please enter the price of your item: '))
      items_count.append(price)
      count = int(count) - 1
  
  print 'The subtotal of your items is: ' '$%.2f' % sum(items_count)
  print 'The amount of sales tax is: ' '$%.2f' % sum(items_count) * tax
  total = (sum(items_count) * tax) + sum(items_count)
  print 'The total of your items is: ' '$%.2f' % total
  </code></pre>