The Python Oracle

How do you create nested dict in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands

--

Chapters
00:00 Question
01:34 Accepted answer (Score 409)
03:47 Answer 2 (Score 69)
04:19 Answer 3 (Score 37)
04:45 Answer 4 (Score 4)
05:02 Thank you

--

Full question
https://stackoverflow.com/questions/1633...

Accepted answer links:
[defaultdict]: https://docs.python.org/2/library/collec...
[collections]: https://docs.python.org/2/library/collec...
[comment]: https://stackoverflow.com/questions/1633...
[csv module]: https://docs.python.org/2/library/csv.ht...

Answer 2 links:
[this answer]: https://stackoverflow.com/a/8702435/1757...

Answer 4 links:
[easydict GitHub]: https://github.com/makinacorpus/easydict
[addict GitHub]: https://github.com/mewwts/addict

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #dictionary #mapping #nested

#avk47