title: Subtracting a 10% discount from total price
body: <p>I am a java programmer playing with python. So, if this seems a little newbieish, that's because it is. Bear with me.</p>
  
  <p>I am trying to Calculate and subtract 10% from the total price of an item. But when I do, it tells me there are datatype mismatches. I know in Java I'd just use nextInt() to differentiate the types from a Scanner, and I tried using Decimal() and int(), but the interpreter is telling me that the type for itemName isn't recognised. I thought python had a Scanner built into the input which could detect the raw string input.</p>
  
  <p>Please help</p>
  
  <pre><code>&lt;code&gt;
  from decimal import Decimal
  itemName = input()
  itemPrice = Decimal(input())
  itemQuantity = int(input())
  
  if itemQuantity &lt;= 10:
          print(itemQuantity,'x',itemName,'@ $',itemPrice)
          print('Total: $',itemQuantity*itemPrice)
  else:
          discountMultplier = 0.1
          print(itemQuantity,'x',itemName,'@ $',itemPrice)
          print('Subtotal: $',itemQuantity*itemPrice)
          print('-10% Discount: $',(itemQuantity*itemPrice)*discountMultiplier)
          print('Total: $',itemQuantity*itemPrice-((itemQuantity*itemPrice)*discountMultiplier))&lt;/code&gt;
  </code></pre>