Question: Write a python script that will change the extension of the following files to .py: .pdf to .py .txt to .py .docx to .py You
Write a python script that will change the extension of the following files to .py:
.pdf to .py
.txt to .py
.docx to .py
You are given the function heading:
def add_extension(root, extension)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
