Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started