title: Weird output from a function that calls from an imported function
body: <p>I have this code here:</p>
  
  <pre><code>import random
  def AI():
      choices = ["rock","paper","scissor"]
      return str(random.choice(choices))
  print(AI)
  </code></pre>
  
  <p>That prints out:</p>
  
  <pre><code>function AI at 0x0000000003527378
  </code></pre>
  
  <p>instead of either <code>rock</code>, <code>paper</code> or <code>scissor</code>.</p>
  
  <p>When I do it in the shell or outside of a function, it returns and prints normally, but not in a function. I'm new to Python, so this is very confusing to me. Thanks</p>