title: Is there a way to make a function where you can call it like a python method?
body: <p>Is there a way to make a python function so that you can call it like a method? So say i had variable <code>x</code>, and I had a function:</p>
  <pre><code>def func(y):
       return str(y)+&quot;hi&quot;
  </code></pre>
  <p>Then call it like <code>x.func()</code> and have it take x in as the input?</p>