I have a .csv file with IPs which I converted into a list with Python:

```
def ip_list():
    iplist = []
    with open("/path/to/file") as csvfile:
        csvlist = csv.reader(csvfile)
        for lists in csvlist:
            for item in lists:
                iplist.append(item)
    return iplist

ip = ip_list()

print(ip)

>>> ["192.168.1.1", "192.168.1.2", ...]

```

Now I want to have every value in the list and append them to a given parameter each time.

Function for context:

```
def gencontent(ip, value1, value2, time):
    content = [
            {
                "example": {
                    "ipadress": ip
                    }
            }
        ]
    return content

ip = ["192.168.1.1", "192.168.1.2", "192.168.1.3"]

content = getcontent(ip[0-...], value1, value2, time)

```

I want loop content with each value in ip:

```
#Example list for reproduction
ip = ["192.168.1.1", "192.168.1.2", "192.168.1.3"]

content = getcontent(ip[0-...], ...)

```

I do not want:

```
#Example list for reproduction
ip = ["192.168.1.1", "192.168.1.2", "192.168.1.3"]

content1 = getcontent(ip[0], ...)
content2 = getcontent(ip[1], ...)
...

```

I want to loop content basically each time with a new ip value.

Thanks!