Question: Write a program that asks the user for a path to a directory, then updates the names of all the files in the directory that
Write a program that asks the user for a path to a directory, then updates the names of all the files in the directory that contain the word draft to instead say final
EX: "term paper (draft).txt" would be renamed "term paper (final).txt"
For any .txt file that your program changes the name of, have your program add a line of text that states "Edited on " followed by the current date to the end of the text in the file that it is editing.
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
To solve this problem youll need to create a Python script that handles the following tasks 1 Accepts a directory path from the user 2 Iterates over t... View full answer
Get step-by-step solutions from verified subject matter experts
