title: Python code that requires ask to do an IC validation
body: <p>guys.I am currently a student and took a programming test yesterday in python.
  The question was something along the line of asking us to input an IC that starts with T and we are to check for its validation through finding the remainder of this equation 
  <code>x=(int(IC[1])*2+int(IC[2])*7+int(IC[3])*6+int(IC[4])*5+int(IC[5])*4+int(IC[6])*3+int(IC[7])*2+4)%11</code></p>
  
  <p>in addition ,they also state that
  Z=0,J=1,I=2,H=3,G=4,F=5,E=6,D=7,C=8,B=9,A=10
  So basically x needs to have the same value as the value the last letter was assigned to ,for eg. T12345678B is not a real IC as x does not fit the value B is assigned to .However ,I do not know why mt code doesn't work ,can you guys help me please?Thank you</p>
  
  <pre><code>IC=str(input("Enter the IC(starting with T) to be validated (all letters to be in caps):"))
  x=(int(IC[1])*2+int(IC[2])*7+int(IC[3])*6+int(IC[4])*5+int(IC[5])*4+int(IC[6])*3+int(IC[7])*2+4)%11
  J=0
  Z=1
  I=2
  H=3
  G=4
  F=5
  E=6
  D=7
  C=8
  B=9
  A=10
  if IC[-1] == "J"
  IC[-1]=J
  elif IC[-1]== "Z"
  IC[-1]= Z
  elif IC[-1]== "I"
  IC[-1]=I
  elif IC[-1] =="H"
  IC[-1]=H
  elif IC[-1] =="G"
  IC[-1]=G
  elif IC[-1] =="F"
  IC[-1]=F
  elif IC[-1] =="E"
  IC[-1]=E
  elif IC[-1] =="D"
  IC[-1]=D
  elif IC[-1] =="C"
  IC[-1]=C
  elif IC[-1] =="B"
  IC[-1]=B
  elif IC[-1] =="A"
  IC[-1]=A
  
  if x == y
  print ("Validity of the IC: True")
  else
  print ("Validity of the IC: False")
  </code></pre>