Hi Folks

How convert list to nested dictionary?

>>> l
['k1', 'k2', 'k3', 'k4', 'k5']
>>> result
{'k1': {'k2': {'k3': {'k4': {'k5': {}}}}}}

Regards

macm
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to