Home /
Expert Answers /
Computer Science /
nbsp-python-please-thank-you-instructions-create-a-python-solution-to-the-following-task-pa236
(Solved): Python please. Thank you!! Instructions: Create a Python solution to the following task. ...
Python please. Thank you!!
Instructions: Create a Python solution to the following task. Ensure that the solution produces output in exactly the same format shown in the sample(s) below, including capitalization and whitespace. Task: Create a solution that accepts an input identifying the name of a text file, for example, 'WordTextFile1.txt'. Each text file contains three rows with one word per row. Using the open() function and write) and read0 methods, interact with the input text fle to write a new sentence string composed of the three existing words to the end of the file contents on a new line. Output the new fle contents. The solution output should be in the format Sample Input/Output: If the input is WordextFile1.txt then the expected output is Input to program