fork download
  1. def printDict(d):
  2. for key1, value1 in d.items():
  3. if isinstance(value1, dict):
  4. print(key1, ':')
  5. for key2, value2 in value1.items():
  6. if isinstance(value2, dict):
  7. print('\t',key2, ':')
  8. for key3, value3 in value2.items():
  9. if isinstance(value3, dict):
  10. print('\t\t',key3, ':')
  11. for key4, value4 in value3.items():
  12. if isinstance(value4, dict):
  13. print('\t\t\t',key4, ':')
  14. for key5, value5 in value4.items():
  15. if isinstance(value5, dict):
  16. print('\t\t\t\t',key5, ':')
  17. for key6, value6 in value5.items():
  18. print ('\t\t\t\t\t', key6, ':', value6)
  19. else: print ('\t\t\t\t', key5, ':', value5)
  20. else: print ('\t\t\t', key4, ':', value4)
  21. else: print ('\t\t', key3, ':', value3)
  22. else: print ('\t', key2, ':', value2)
  23. else: print (key1, ':', value1)
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty