[Solved] Join Operation for Dictionary in Python [closed]
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)])) solved Join Operation for Dictionary in Python [closed]