Question: 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
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).
* In the answer please comment on what the program is doing
* Also please attach a picture of the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
