title: Syntax confusion during calling of functions from python classes
body: <p>Sorry this is my first time asking a question, my formatting may be wrong. I am unsure about the syntax for calling functions from a class without creating an instance of the class. For the code: </p>
  
  <pre><code>class A_Class:
      var = 10
  
      def __init__(self):
           self.num = 12
  
      def print_12(self):
           return 12
  </code></pre>
  
  <p>How come I am able to call </p>
  
  <pre><code>      print(A_Class.var)
  </code></pre>
  
  <p>And have the console print out the value 10, but if I were to call </p>
  
  <pre><code>      print(A_Class.num)
  </code></pre>
  
  <p>Then I get the error: </p>
  
  <pre><code>       AttributeError: type object 'A_Class' has no attribute 'num'
  </code></pre>
  
  <p>And if I try to call </p>
  
  <pre><code>       print(A_Class.print_12)
  </code></pre>
  
  <p>Then the console prints: </p>
  
  <pre><code>       &lt;function A_Class.print_12 at 0x039966F0&gt;
  </code></pre>
  
  <p>And not the value 12</p>
  
  <p>I am confused with how to call functions from classes. </p>