I have a list of tuples in the format:
("some string", "string symbol", some number)
For example, ("Apples", "=", 10). I need to write them into the output file, like this:
Apples = 10
I’m having trouble with the write method. How can it be done?
You can use:
where
fis yourfile.