title: Why showing error in while loops and if statement
body: <p>Today I was writing a while loop code in python3 here is the code:</p>
  <pre><code>#Simulate supermarket billing process
  while True:
      total=0
      repeat=&quot;y&quot;
      Noc=input(&quot;Enter customer's name here:&quot;)
      while repeat==&quot;y&quot;:
          print(&quot;1. Keep adding.&quot;)
          print(&quot;2. Print the bill amount.&quot;)
          choice=int(input(&quot;Enter your choice(1 or 2):&quot;)
          if choice==1 or choice==2:
              if choice==1:
                 itemqty=int(input(&quot;Etner item quantity here:&quot;))
                 itemamt=float(input(&quot;Enter item price Here:&quot;))
                 total=total+itemqty*itemamt
              elif choice==2:
                   print(&quot;The total amount is:&quot;,total)
                   repeat=input(&quot;Do you want to enter more items?(Y/y/N/n)&quot;)
          else:
              print(&quot;Incorrect choice...Enter again&quot;)
  #print a bill
  print(&quot;Name:&quot;,&quot; &quot;,Noc,)
  print(&quot;Total Amount:&quot;,&quot; &quot;, total)
  print(&quot;-----**Thanks for Shopping**-----&quot;)
  mp=input(&quot;Want to go to next person?(Y/y/N/n)&quot;)
  if mp=&quot;N&quot; or mp=&quot;n&quot;:
     break
  </code></pre>
  <p>And this error is coming</p>
  <pre><code>File &quot;/home/agupta/Documents/anant/codingPlayground/learnPython/Chapter 4/hi.py&quot;, line 10
      if choice==1 or choice==2:
                               ^
  Syntax Error: invalid syntax
  
  </code></pre>
  <p>Please could someone tell what is the error?</p>