I want to read a file from command line first, then run my script and output a file with a different extension.
for example: if I do python script.py apple.java there should be an output file called banana.md
I do not want to rename the file. Dont worry about path or anything.
n= sys.argv[-1]
base = os.path.splitext(n)[0]
os.rename(n,base + ".md")