Question: Please write the following in PYTHON: Add the following code Ask the user for a file name i.e: Please enter a file name Store the

Please write the following in PYTHON:

  1. Add the following code
    1. Ask the user for a file name
      1. i.e: Please enter a file name
      2. Store the user response in a variable
    2. Ask the user for text for the file
      1. i.e: Enter text here. Press to write to file.
    3. Append the user input to a new file
      1. Open a file for appending (use the correct options so a new file will be created if it doesnt exist)
    4. Close the file
    5. Open the file for reading
    6. Print You entered : then output the contents of the file
    7. Print end program after the text from the file
  2. For credit: run the program and upload a screen shot of your results. Please show your code and the output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!