Get the return value from a function in a class in Python
<p>I am trying to simply get the value out of my class using a simple function with a  return value, I'm sure its a trivial error, but im pretty new to python</p>

<p>I have a simply class set up like this:</p>

<pre><code>class score():
#initialize the score info 
    def __init__(self):
        self.score = 0
        self.num_enemies = 5
        self.num_lives = 3

    # Score Info
    def setScore(num):
        self.score = num

    # Enemy Info
    def getEnemies():
        return self.num_enemies

    # Lives Info
    def getLives():
        return self.getLives

etc.....
</code></pre>

<p>Than I create an instance of the class as such: </p>

<pre><code>scoreObj = score()

for enemies in range(0, scoreObj.getEnemies):
    enemy_sprite.add(enemy())  
</code></pre>

<p>I get the error saying that an integer is expected, but it got an instancemethod</p>

<p>What is the correct way to get this information?</p>

<p>Thanks!</p>
