python dictionary not finding key str 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