title: What is wrong with my code? I cannot grasp the concept of
body: <pre><code>decimal = input("Please insert a number: ")
  
  
  if decimal &gt; 256:
  
  print "Value too big!"
  
  
  elif decimal &lt; 1:
      print "Value too small!"
  
  else:
      decimal % 2
  
  binary1 = []
  binary0 = []
  if decimal % 2 == 0:
      binary1.append[decimal]
  
  else:
      binary0.append[decimal]
  print binary1
  print binary0
  </code></pre>
  
  <p>So Far, I want to test this code, it says on line 13: </p>
  
  <blockquote>
    <p>TypeError: builtin_function_or_method' object has no attribute
    <code>__getitem__</code>.</p>
  </blockquote>
  
  <p>I don't understand why it is wrong.</p>
  
  <p>I would like to convert the decimal number into binary. I only wanted to try and get the first value of the input then store it in a list to use then add it to another list as either a 0, or a 1. And if the input doesn't divide by 2 equally, add a zero. How would I do this?</p>