endswith python list

Solution 1:
if file_name.endswith(tuple(extensions)):
Solution 2:
Though not widely known, str.endswith also accepts a tuple. You don't need to loop.
>>> 'test.mp3'.endswith(('.mp3', '.avi'))
True

Solution 3
if any((file_name.endswith(ext) for ext in extensions))