Say I have a list like this:
[a, b, c, d, e, f, g]
How do modify that list so that it looks like this?
[a, b, c, def, g] >
just a variation
alist=["a", "b", "c", "d", "e", 0, "g"] alist[3:6] = [''.join(map(str,alist[3:6]))] print alist