I have a list,
temp1 = ['a','b','c','d','e','f']
I want the output as a new list new_list=['a.b.c.d.e.f']
I had tried this
def combine(temp1, lstart, lend):
global y,z,x
for w in temp1[lstart:lend-1]:
y=w+"."
z=w
for w in temp1[lend-1:lend]:
z=w
for i in edge_names:
temp1=(i.split('.'))
print(temp1)
right = len(temp1) - 2
combine(temp1, 0, right)
but unable to get the desired result. Please help!