title: How to make a program that verifies Card Security Codes in python?
body: <p>I want to make a program that verifies Card Security Codes (CSC, 3 digit security code on credit cards) in python. I want to write a simple program that checks if a given code is valid. The code is valid if all the three characters entered are digits between 0 and 9. If the CSC is valid, I want the program to display a massage saying that it is valid and a different message saying that it is not valid if the entered code does not consist of three digits.</p>
  
  <p>I wrote the following code but I know it is wrong. How can I make it write but keep it short and simple?</p>
  
  <pre><code>code = raw_input("Please enter CSC: ")
  
  if code[0] in range [0,10] and code[1] in range [0,10] and code[2] in range [0,10]:
      print "Thank you. We will process your order!"
  else:
      print "The verification code was not valid. Please check your credit card code again."
  </code></pre>
  
  <p>Would very much appreciate your help!</p>