How do I join the values of nested Python dictionary?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-29T08:32:37Z Indexed on 2010/03/29 9:13 UTC
Read the original article Hit count: 105

Filed under:

Suppose I have a dictionary, and it's nested with dictionaries inside. I want to join all the values of that dictionary, recursively?

' '.join(d.values())

That works if there are no nests.

© Stack Overflow or respective owner

Related posts about python