TypeError writing to csv


Adding the statement a, b, c = 1, 2, 3 in front of your code, this works over here.

Could you post a minimal code demonstrating the failure as well as the complete error traceback? (See About the Users category in case you’re unsure how to format these.)

You might also want to try with an empty CSV file. Attach the one you are using if the error does not reproduce then.