Please see below code snippet for join method (used Python 2.7.2):
iDict={'1_key':'abcd','2_key':'ABCD','3_key':'bcde','4_key':'BCDE'}
'--'.join(iDict)
Result shown as
'2_key--1_key--4_key--3_key'
Please comment why only keys are joined? Also the sequence is not in order.
Note - below are the individual methods.
'--'.join(iDict.values())==>'ABCD--abcd--BCDE--bcde'==> the sequence is not in order'--'.join(iDict.keys())==>'2_key--1_key--4_key--3_key'==> the sequence is not in orde