I'm writing a script that will search file names looking from certain file extensions. The thing is, is that I am looking for multiple extensions, and the list may change.
I could write an if statement using "and", but the line just gets a bit long and can become difficult to manage.
I was hoping that I might be able to create a list or use regex to make one place where I can list all of the extension and then use that list (or regex) to search the file names.
I'm still a Python newbie and I'm not sure how I could implement something like this.
Any help would be appreciated.