Question: ```
#include <iostream>
using namespace std;
int main(){
    int a=0 , b=0;
    cin>>a>>b;
    for(int i = a+1;i < b;i++){
        int counter = 0;
        for(int j = 2;j <= i / 2;j++){
            if(i % j == 0){
                counter++;
                break;
            }
        }
        if(counter == 0 && i!= 1){
            cout<<i<<",";
        }
    }

    return 0;
} 

```

How to remove the last comma from this code? I think we have to add 1 if statement but I don't know what should I do... please help me thanks

Answer: 
You haven't provided any code so, I may not give you exact answer but you can try this:

```
st={'captchaId': '67561984031', 'code': '03AGdBq26D5XwT-p6LuAwftuZ3gUcvj0dB7lhZUT7OOfKIZU_wZzN03CCVZAaRGzzD0rXVbsJOjTBN1Ed2d0v0X6Tl2wQQPbT_R1lRHOkh5FFU46MN3tfVbajIFyZfZHUHZAt_h-5yY0cVqfJTy1_fwebyr-ilN_N1R04214z9WVXg9-cuSYJD9a2cpDNknXhvVjLxIfmVGgW9dJlouGCxZ0QbJxodRNUkQBXQTLr7DI1h-uJINlVzKvq4XguuChbQ0k2s1PrbEQK_Ir15-cAfPmldrJT5gEfjFAyBedn2Syum6axx_PRhVouXHpSKpx7-65Cw1FeBiUZ-IUSt_-E2i8NgUBXYpGt9nMIglKSSiFfO0nLcbOJuwbOObt5LvCPgfPhy2Uss9yz19F-e6GlGUuFgc7dODLN91fKUXCEmW9XG_FonSd2XV3k'}
st=dict(st)
print(st["code"])

```

And if it is response from `requests` then you may do this:

```
response=requests.get()
response=response.json()
#or response=requests.get().json()
print(response["code"])

```
That looks like a dictionary, so you can just access the terms like you would in a dictionary.
eg.

```py
dict = {
        'firstkey': 'firstvalue',
        'secondkey': 'secondvalue'
       }

```

so if you call `dict[firstkey]`, it would return `firstvalue`.   

In your case, you can just save that into `var` and access it through `var[code]`