You can get all the values using a call to dict.values(). Then you can call ", ".join on the values to concatenate just the values in the dict separated by commas.
example
a = {'foo': "Hello", 'bar': "World"} vals = a.values() concat = ", ".join(vals) print(concat)
Output
This will give the output −
Hello, World