SyntaxFix
Write A Post
Hire A Developer
Questions
You can get this error if you use wrong mode when opening the file. For example:
with open(output, 'wb') as output_file: print output_file.read()
In that code, I want to read the file, but I use mode wb instead of r or r+
wb
r
r+