title: 'int' object is not callable while calling a function
body: <p>I am an amateur programmer who is working on a console dice roller, quite more complex than the traditional ones. So far I am having trouble with this function:</p>
  
  <pre class="lang-py prettyprint-override"><code>  def multiRoll(dice, amount):
          total = 0
          rolls = []
      for roll in range(amount):
          rolls += roll(dice)
      total = sum(rolls)
      return total, rolls
  </code></pre>
  
  <p>It <em>is meant</em> to take a single entry from a dictionary describing the kind of dice (4, 6, 8 faces, etc.) with its index and the times the dice is rolled. Then it rolls the dice as much as it is needed and then it is meant to add each result into a single list that will be summed later.</p>
  
  <p>But apparently the flux goes wrong and when it reaches the this line:</p>
  
  <pre><code>        rolls += roll(dice)
  </code></pre>
  
  <p>I get <strong>'int' object is not callable</strong>.</p>
  
  <p>May you please tell me how to overcome this? </p>
  
  <p>If you have any doubt about the roll() function, here they are:</p>
  
  <pre class="lang-py prettyprint-override"><code>def roll(dice):
      if dice &lt; 1:
              print "I found a problem when trying to roll a d%d" % (dice)
              return "Failed"
      else:
              return randrange(1, dice)
  </code></pre>