Using someone else's script I found online, but when I try to use it I get a syntax error, could anyone tell me what's wrong with it? This is the line that has the syntax error, but I can provide the whole script if needed. I'm completely new to python so I have no idea what any of that means lol.
Code
print >>opennew, "%s%s" % (word1,line[30:-1])openold.close()
opennew.close()