Skip to content
Advertisement

How to write dict in file with specific format and headers?

I have a dict:

JavaScript

I need to write this data into file line by line in the following format:

JavaScript

How to do that using Python?

Advertisement

Answer

JavaScript

You can change dictionary1 to dictionary2 for other values.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement