D = {\'z\': {\'A\': \'Hello\', \'B\': \'World\'}} {z.get("A")} {z.get("B")}.format(**D) *** AttributeError: \'dict\' object has no attribute \'g