How-to articles, tricks, and solutions about FILENAMES
Extracting extension from filename in Python
You can extract the file extension from a file name in Python by using the os.path module.
You can extract the file extension from a file name in Python by using the os.path module.