[Solved] Join Operation for Dictionary in Python [closed]
[ad_1] You could use a comprehension(But you need to convert those numbers to string), Try code below: converted = {‘w’: 4, ‘a’: 3, ‘d’: 1, ‘e’: 1, ‘x’: 6} print(“”.join([str(char) for k, v in converted.items() for char in (k, v)])) [ad_2] solved Join Operation for Dictionary in Python [closed]