import os

path = '/Users/jguerrad/Downloads/'

l = os.listdir(path)
for e in l:
    split_ext = e.split('.')[1]
    filename = e
    print(f"File name {e} and the extension is {split_ext}")

def check_ext(a,b):
    if i in range():
        pass