Rolling a dice in python n times
<p>I'd like to create code that will 'roll' number_of_dice times and find the sum of the rolls. This is what I have. I'm getting an error when I do "sum = sum + roll" that there's unsupported operand types for +: built_in_function_or_method and int. How can I solve this?</p>

<pre><code>for i in range(0,number_of_dice):
    roll = random.randint(1,number_of_sides + 1)
    sum = sum + roll
    return sum
</code></pre>