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