Human: Python function to get extension from list of files. Assistant: 
Here is a Python function to get extension from list of files

import os

def get_extension(file_list):
    """
    Return the extension of the file.
    """
    return [os.path.splitext(file)[1] for file in file_list]

# Enter the file list
file_list = ['file1.jpg', 'file2.jpg', 'file3.jpg']

# Calling the function
print((get_extension(file_list)))

#Example Output
# ['.jpg', '.jpg', '.jpg']

#Remember to inspect code for bugs.