Hii need help for writing user input in a file. The following code is writing only the last word in a file. For example if user type "hello world", it will save only "world" in the file. I want to write the whole sentence in the file.
for i in range(0,2): orange = open('original.txt', 'w') text=raw_input("Enter message:") orange.writelines(text) orange.close()