How would I convert the output of this loop to a string in this format?

ABCDEF,BCDEFG,CDEFGH,DEFGHI

```
fileHandle = open( 'urls.txt', 'r' )
raw_URLS = fileHandle.readlines()

for items in raw_URLS:
    print(items[26:32])

fileHandle.close()

```

urls.txt:

```
www.example.com/directory/ABCDEF/pagename
www.example.com/directory/BCDEFG/pagename
www.example.com/directory/CDEFGH/pagename
www.example.com/directory/DEFGHI/pagename

```