title: Python 3: Calling a Function from a class, self
body: <p>I am trying to learn about classes, can someone explain to me why this code is not working. I thought when calling a function from a class, "self" is automatically ommitted, but the interpreter tells me that argument "a" is missing (he thinks self = 10).</p>
  
  <pre><code>#! coding=utf-8
  class test:
      def __init__(self):
          "do something here"
      def do(self,a):
          return a**2
  
  d = test.do
  print(d(10))
  </code></pre>