This is an example of the code section I am trying to create:
Expand|Select|Wrap|Line Numbers
- print "enter string"
- word = raw_input()
- out_file = open("code.txt","a")
- out_file.write("------------------------NEW-CODE--------------------\n")
- for char in word:
- code= ord(char)
- out_file.write(code) #this is the error...
- out_file.close()
Any help greatly appreciated