(Solved) : Write Py File Like Filespy Py Create Function Strips First Letters File Names Directory Ne Q37173912 . . .
Write a .py file like Files.py
In that .py, create a function that strips the first lettersfrom all file names in a directory. If the new name is a duplicateof an existing name, Python will throw an exception. Handle thatexception by adding “dup” a number as part of the files newname.
Call that function from a Jupyter Notebook, passing in thenumber of characters to delete and the file path.
Expert Answer
Answer to Write a .py file like Files.py In that .py, create a function that strips the first letters from all file names in a dir…
OR