Calling a method within a Class
<p>I have the following class however when i try calling the method in an object, nothing happens</p>

<pre><code>class parentClass:
  def test(self):
    if 3 &gt; 2:
        print "This is true"
    else:
        print "This is false"
object1 = parentClass()
object1.test
</code></pre>

<p>Can someone please tel me what i am doing wrong?</p>

<p>You forget "()":</p>

<pre><code> object1.test()
</code></pre>

<p>Remember the methods need to be called with the brackets, for example in the propierties are not need it.</p>

python python-2.7 python-3.x