I am writing a Python program in TKinter on Ubuntu to import and print the name of files from particular …