Question: Organizing and Manipulating Files in Python: Write a Python program that looks at every file name in the current directory, and changes the name of

Organizing and Manipulating Files in Python:

Write a Python program that looks at every file name in the current directory, and changes the name of any that have dates in them (American style in the format of mm-dd-yyyy - like, today is 01-24-2021), and changes them so the date is in the format yyyy-mm-dd. If the file name does not have a date in it, do not change it. You do not need to get a directory from the user, just run it in the current directory (which defaults to where the program file is).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!