title: Shopping cart Python
body: <p>I've noticed that when I remove a item, I need to select the checkout option multiple times.
  Anybody know why this is happening?</p>
  <pre><code>my_cart = []
  
  def customerDecision(addItem, input1):
    while True:
      customerResponse = input(&quot;What would you like to do? add / remove / show / checkout / quit &quot;)
      if customerResponse.lower() == &quot;add&quot;:
        addItem = input('add what? ')
        my_cart.append(addItem) 
        
      elif customerResponse.lower() == &quot;show&quot;:
        print(my_cart)
     
      elif customerResponse.lower() == &quot;remove&quot;:
        input1 = input(f'remove what: {my_cart} ')
        print(f'{input1} removed...')
  
      elif input1 in my_cart:
        my_cart.remove(input1)
        
      elif customerResponse.lower() == &quot;checkout&quot;:
        for addItem in my_cart:
          print(f&quot;Thanks for purchasing {my_cart}: '\n'see you next time!&quot;)
          break
  
      elif customerResponse.lower() == &quot;quit&quot;:
        print(&quot;Thank you! We hope you find what you're looking for next time&quot;)
        break
  
      else:
        print(&quot;Please try a valid command.&quot;)
  
  customerDecision(addItem='', input1='')
  </code></pre>