I am calling a GET API to retrieve some data. For get call I need to covert my keyword as

```
keyword = "mahinder singh dhoni"

```

into 

```
caption%3Amahinder%2Ccaption%3Asingh%2Ccaption%3Adhoni

```

I am new to python and dont know the pythonic way. I am doing like this

```
caption_heading = "caption%3A"
caption_tail = "%2Ccaption%3A"

keyword = "mahinder singh dhoni"
x = keyword.split(" ")
new_caption_keyword = []
new_caption_keyword.append(caption_heading)
for data in x:
    new_caption_keyword.append(data)
    new_caption_keyword.append(caption_tail)

search_query = ''.join(new_caption_keyword)
search_query = search_query[:-13]

print("new transformed keyword", search_query)

```

Is there a better way to do this.I means this is kind of hard coding.
Thanks