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:
- Add the following code
- Ask the user for a file name
- i.e: Please enter a file name
- Store the user response in a variable
- Ask the user for text for the file
- i.e: Enter text here. Press
to write to file.
- i.e: Enter text here. Press
- Append the user input to a new file
- Open a file for appending (use the correct options so a new file will be created if it doesnt exist)
- Close the file
- Open the file for reading
- Print You entered : then output the contents of the file
- Print end program after the text from the file
- Ask the user for a file name
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
