Task: Check if String Ends with One of the Strings from a List
Task: Check if String Ends with One of the Strings from a List: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that checks if a filename ends with any extension from a given list of extensions using the most Pythonic approach.
Part of PrimeIntellect/Terminal-Lego-15k.