In: Computer Science
In python
1.4. Write To a Text File Create a function that writes to a text file whatever data the user enters via keyboard. The user will first be asked to give the filename. Keep asking the user to enter data until they type Return without entering text. If the text file already exists then the data entered by the user is appended to the existing text file. The file you will write to will be named write_to_text_file.txt. Function name: create_text_file() Parameters/arguments: a filename Returns: 1 if a new text file was created, 0 if an existing text file was appended to