This is a program intended to write text to any file specified
var_file = (raw_input('nof$ ') #nof, number of files.
try:
text = str(raw_input('ttwtf$ ') #ttwtf, text to write to files.
print text >>> var_file
except ValueError:
print "Error: Not a string"
main()
When the program starts the "try
" part of the program it returns a syntax error. No details, just:
"SyntaxError: Invalid syntax"
Whats wrong?