# Write a Python program to Loop through files of certain extensions # importing the libraryimport os  # giving directory namedirname = 'D:\\AllData'  # giving file extensionext = ('.exe', 'jpg')  # iterating over all filesfor files in os.listdir(dirname):    if files.endswith(ext):        print(files)  # printing file name of desired extension    else:        continue