python, getting dictionary entry from string code example
Example: python dict keys to string
myList = ['Tom', 'Lisa', 'Chris', 'Joe']
separator = ' and ' # note the spaces around
s = separator.join(myList)
print(s)
## outputs:
## Tom and Lisa and Chris and Joe