title: Python 3.2.3 programming...Almost had it working
body: <pre><code>x = float(input("What is/was the cost of the meal?"))
  y = float(input("What is/was the sales tax?"))
  z = float(input("What percentage tip would you like to leave?"))
  
  print ("Original Food Charge: ${}"
  .format(x*1)))
  print ("Sales Tax: ${}"
  .format((y/100)*x)))
  print ("Tip: ${}"
  .format(x*(z/100)))
  print ("Total Charge For Food: ${}"
  .format(x+((y/100)*x)+((z/100)*x)))
  
  error output:
  </code></pre>
  
  <p>line 10, in  Syntax Error: .format(x*1))):, line 1017</p>
  
  <p>I have been told that this works in 2.6 but it does not work STILL in 3.2.3</p>
  
  <p>I'm attempting to write a program that calculates the total amount of a meal purchased at a restaurant.  The program should ask the user to enter the charge for the food and the percentage of the sales tax.  The program should then ask the user what percentage of tip they would like to leave (Example: 18%).  Finally the program should display the total charge for the food, the sales tax on the total charge for the food (total food charge * sales tax rate), the tip for the meal (total food charge * tip percentage), and finally the total cost of the meal (food charge + sales tax + tip). </p>