Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started