title: Shopping Cost Total in Python
body: <p>I'm trying to work on a simple program in Python which will ask me how much each item for a shopping list will cost.</p>
  
  <p>I wanted the program to repeat and ask me each time the next price for which to add to a grand total which works.</p>
  
  <p>The list can not exceed ten items and when the tenth item is entered I wish the program to stop and display the total cost of all the items, additionally I want it so if '-1' is entered, the program will do the same behaviour as if it was the tenth item.</p>
  
  <p>I'm a bit stuck on working out how to not add '-1' to the total and which variables will be necessary in order to store the running cost and count the items have been entered. Also unsure on my syntax for the IF Statement. </p>
  
  <pre><code>enter = int(input("How much is the item: "))
  enter2 = int(input("Next item: "))
  enter3 = int(input("Next item: "))
  enter4 = int(input("Next item: "))
  enter5 = int(input("Next item: "))
  enter6 = int(input("Next item: "))
  enter7 = int(input("Next item: "))
  enter8 = int(input("Next item: "))
  enter9 = int(input("Next item: "))
  enter10 = int(input("Next item: "))
  total = enter + enter1 + enter2 + enter3 + enter4 + enter5 + enter6 + enter7 + enter8 + enter9 + enter10
  print("Total price is", total)
  
  if input == -1 or &gt; 10:
     print("Total price is", total)
  </code></pre>