title: Why does my code print "built-in method" and some hex numbers?
body: <p>Here is my Key function:</p>
  <pre class="lang-py prettyprint-override"><code>def Key(message, decision):
      key = input(&quot;Input the key which will be used to encode the message.\n&quot;.lower)
      n = 0
      for i in range(len(key)):
          if 64 &lt; ord(key[n]) &lt; 91:
              raise ValueError(key[n], &quot;is a capital letter!&quot;)
          else:
              n = n+1
      Keycode(decision, message, key)
  </code></pre>
  <p>When I call it and input the message and press enter it comes up with:</p>
  <blockquote>
  <p>built-in method lower of str object at 0x0150E0D0</p>
  </blockquote>
  <p>What's wrong? How can I fix it?</p>