How can I replace (or strip) an extension from a filename in Python?
Is there a built-in function in Python that would replace (or remove, whatever) the extension of a filename (if it has one)?
Is there a built-in function in Python that would replace (or remove, whatever) the extension of a filename (if it has one)?