import glob


def get_photos(folder_path, pics_extension):
    """Function create a list of photos from given folder"""

    pics_path = folder_path + "/*." + pics_extension

    return glob.glob(pics_path)