Python Write A Nested Dictionary Having Different Keys

Python Write A Nested Dictionary Having Different Keys