Python for loop doesn't have expected results
<p>I got a bit stuck with a for loop - what I can see it is doing appears correct but isn't exactly what I'm trying to accomplish with it. I've come from a C background but any advice here would be beneficial.</p>

<pre><code>def deal(player_num, cards):
    a = 0
    z = 0
    i = 0
    b = 0
    c = player_num
    hand = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]    
    for a in range(player_num):
        hand[a] = cards[i] + cards[i+b+c]
        b == b+1
        i == i+1
        z == z+1
    return hand 
</code></pre>

<p>So the <code>for a in range(player_num)</code> seems to be working (appends <code>a++</code>) but <code>hand[0]</code>, <code>hand[1]</code>, etc. gets the same hand. I guess it loops a but not the other variables, so I need to use more than 1 nested loop to get <code>i++</code>, <code>b++</code> and <code>c++</code>?</p>
