AttributeError: ‘str’ object has no attribute ‘write’
I’m working on Python and have defined a variable called “_headers” as shown below and in order to write this into an output file, I’ve written the following statement but it throws me the error “AttributeError: ‘str’ object has no attribute ‘write’” Please help