Suppose i have this list a = ["test", "news", "hello"] and i need to duplicate each value in list and separate it by delimiter like this.
a = [("test","test"),("news","news"),("hello","hello")]
I have tried this and got only up to this.
a = ["test", "news", "hello"]
b = [l + (''.join(l,)) for l in a]
print(b)
#['testtest', 'newsnews', 'hellohello']
,for each element...