I have the following:
max_id = 10
for i in range(max_id):
payload = "{\"text\": 'R'+str(i),\"count\":\"1 \",}"
print(payload)
I want to iterate through this , and have the value of text be set to "R1", "R2" ... Upon debugging the output is:
{"text": 'R'+str(i),"count":"1",}
What am I doing wrong?