title: Python Coding - Vending machine - How to get the user to only enter certain coins?
body: <p>I'm doing a controlled assessment on python. One of the tasks is to create a vending machine under certain criteria. I'm pretty bad a python and I'm probably being an idiot and doing this wrong.</p>
  
  <p>I want the user to input only 10,20,50,1.00 coins. If the user enters anything other than these coins, I want it to print "Machine doesn't accept these coins".</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>inp = input("Enter Coins, Note: Machine only accepts 10, 20, 50 and 100 coins: ")
  value = [10,20,50,100]
  if inp != value:
      print("Machine doesn't accept these coins")
  else:
      print("What would you like to buy?")
  </code></pre>