python , changing dictionary values with iteration : <p>I have the following:</p>

<pre><code>max_id = 10
    for i in range(max_id):
        payload = "{\"text\": 'R'+str(i),\"count\":\"1 \",}"
        print(payload)
</code></pre>

<p>I want to iterate through this , and have the value of text be set to "R1", "R2" ... Upon debugging the output is:</p>

<pre><code>{"text": 'R'+str(i),"count":"1",}
</code></pre>

<p>What am I doing wrong?</p>
