1. Answer the question: where can you find the Standard Documentation for Python
ID: 3750668 • Letter: 1
Question
1. Answer the question: where can you find the Standard Documentation for Python? 2. Write an algorithm for step 3. 3. 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" BONUS (5pts): 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 editingExplanation / Answer
1) python documentation is available at https://docs.python.org/3/library/ or if using windows open python idle and press F1.
2)
1)Import os library
2) use os.rename to rename the file.
3)
5) Bonus Part
Note: To see this code actually working create draft.txt file in same directory where your python code is or give fully qualified path in source.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.