SyntaxFix
Write A Post
Hire A Developer
Questions
The output file needs to be opened in binary mode:
f = open('varstor.txt','w')
needs to be:
f = open('varstor.txt','wb')