Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions