Python Join Dict Into Comma Separated String

July 16, 2019
d = {
    'name': 'Desmond',
    'age': 40
}
value = ', '.join(("{}={}".format(*x) for x in d.items()))
name=Desmond, age=40
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.