Question: I have this code :

```
package com.example.finalv2.networking

import retrofit2.Call
import retrofit2.http.GET
import com.example.finalv2.it1

private var argument: String = it1
interface RetrofitAPI {
    @GET(argument)
    fun getInformations(): Call<ArrayList<Information>>

}

```

And I want to use my var argument but retrofit wants a const. How to do ?

Answer: 
You could simply do:

```py
lis = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
# assuming the variable key points to what you want
key = 'a'
a_values = set(dictionary[key] for dictionary in lis)

```

I hope I've understood what you are looking for. Thanks.
You can do it like this:

```
lis = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
search_key = 'a'
s = set(val for dic in lis for key, val in dic.items() if key == search_key)

print(s)

#OUTPUT: {1, 3}

```

Use the `dic.items()` instead of `dic.values()` and check where the `key` is `a`.

Another way to do it to simplify the things:

```
lis = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
search_key = 'a'
s = set(dic.get(search_key) for dic in lis)

print(s)

```