Taking square of summed numbers
<p>This code adds all natural numbers up to 10, then takes the square of that sum in Python. Where did I go wrong?</p>

<pre><code>def square_of_sum():
    sum = 0
    for x in xrange(11):
        if x &lt;= 10:
            x + sum = sum
            x += 1
        else: 
            print sum*sum
            break
</code></pre>
